vmm amdvi: Move ctrl under #ifdef AMDVI_DEBUG_CMD.

This commit is contained in:
John Baldwin 2022-04-07 17:01:29 -07:00
parent 572edd3dae
commit a7d876f701

View File

@ -444,13 +444,14 @@ amdvi_inv_domain(struct amdvi_softc *softc, uint16_t domain_id)
static bool
amdvi_cmp_wait(struct amdvi_softc *softc)
{
struct amdvi_ctrl *ctrl;
#ifdef AMDVI_DEBUG_CMD
struct amdvi_ctrl *ctrl = softc->ctrl;
#endif
const uint64_t VERIFY = 0xA5A5;
volatile uint64_t *read;
int i;
bool status;
ctrl = softc->ctrl;
read = &softc->cmp_data;
*read = 0;
amdvi_cmd_cmp(softc, VERIFY);