]> xenbits.xensource.com Git - xen.git/commit
x86/emul: Correct the decoding of mov to/from cr/dr
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Mar 2017 10:29:17 +0000 (10:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Mar 2017 17:29:16 +0000 (17:29 +0000)
commitc2e316b2f220af06dab76b1219e61441c31f6ff9
tree1e857f93308c6d4d228578998b4097e42205a85a
parent4036e7c592905c2292cdeba8269e969959427237
x86/emul: Correct the decoding of mov to/from cr/dr

The mov to/from cr/dr behave as if they were encoded with Mod = 3.  When
encoded with Mod != 3, no displacement or SIB bytes are fetched.

Add a test with a deliberately malformed ModRM byte.  (Also add the
automatically-generated simd.h to .gitignore.)

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
.gitignore
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/x86_emulate/x86_emulate.c