]> Git Repo - qemu.git/commit
target/i386: implement undocumented "smsw r32" behavior
authorPaolo Bonzini <[email protected]>
Fri, 26 Jun 2020 09:53:36 +0000 (05:53 -0400)
committerPaolo Bonzini <[email protected]>
Fri, 10 Jul 2020 22:02:22 +0000 (18:02 -0400)
commitc0c8445255b2b5b440c355431c8b01b7b7b7c8cf
treeb591227a4b9c015ad804c6e0f7fdfcb3d9403aeb
parent6c9cce1ff348709869262e4bd15ad4fedf513f17
target/i386: implement undocumented "smsw r32" behavior

In 32-bit mode, the higher 16 bits of the destination
register are undefined.  In practice CR0[31:0] is stored,
just like in 64-bit mode, so just remove the "if" that
currently differentiates the behavior.

Reviewed-by: Richard Henderson <[email protected]>
Reported-by: Roman Bolshakov <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target/i386/translate.c
This page took 0.02339 seconds and 4 git commands to generate.