Fixed LGDT and LIDT, fixed read-only memory, and fixed mode transition tests

This commit is contained in:
Jeff Parsons 2015-05-06 16:24:28 -07:00 committed by jeffpar
commit cfa4e0207f
5 changed files with 158 additions and 104 deletions

View file

@ -2098,6 +2098,10 @@ X86.opMOVwsr = function MOVwsr()
}
/*
* Like other MOV operations, the destination does not need to be read, just written.
*
* TODO: Confirm this instruction's behavior on the 80386; ie, if a 32-bit OPERAND size is
* in effect, does it still write only 16 bits? If so, we must add a setDataSize(2) override.
* Confirm for both register and memory destinations.
*/
this.opFlags |= X86.OPFLAG.NOREAD;
this.aOpModMemWord[bModRM].call(this, X86.fnMOVxx);