small cleanup

This commit is contained in:
Stanislav Shwartsman 2011-07-17 19:28:27 +00:00
parent 1b9fd6a18b
commit 6e993adec7

View File

@ -484,11 +484,7 @@ void BX_CPP_AttrRegparmN(3) BX_CPU_C::VMexit_IO(bxInstruction_c *i, unsigned por
}
if (qualification & VMX_VMEXIT_IO_INSTR_STRING) {
bx_address asize_mask = BX_CONST64(0xffffffffffffffff), laddr;
if (! i->as64L()) {
if (i->as32L()) asize_mask = 0xffffffff;
else asize_mask = 0xffff;
}
bx_address asize_mask = (bx_address) i->asize_mask(), laddr;
if (qualification & VMX_VMEXIT_IO_PORTIN)
laddr = BX_CPU_THIS_PTR get_laddr(BX_SEG_REG_ES, RDI & asize_mask);