]> git.proxmox.com Git - qemu.git/commit
target-i386: Fix exceptions for fxsave/fxrstor
authorKevin Wolf <mail@kevin-wolf.de>
Fri, 2 Oct 2009 20:28:57 +0000 (22:28 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 4 Oct 2009 21:10:22 +0000 (23:10 +0200)
commit09d85fb8432e816eb6f9a0512f04bf8e8a218d2f
tree55015404e940c80a22d0f67cc221f59bf53821de
parent94f4af02a1705974fceb90b47e884f44184b1f22
target-i386: Fix exceptions for fxsave/fxrstor

This patch corrects the following aspects of exception generation in
fxsave/fxrstor:

* Generate #GP if the operand is not aligned to a 16 byte boundary
* Generate #UD if the LOCK prefix is used
* For CR0.EM = 1 #NM is generated, not #UD

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/op_helper.c
target-i386/translate.c