]> xenbits.xensource.com Git - xen.git/commit
x86emul: fix rIP handling
authorJan Beulich <jbeulich@suse.com>
Thu, 18 Feb 2016 14:05:34 +0000 (15:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Feb 2016 14:05:34 +0000 (15:05 +0100)
commit0640ffb67fb92e2561c63b9308c27b71281fdd72
tree15afade38bdbb5399b1d94bc8c7bca2b3690bb71
parentb3132fc91b611ad07b1b457a56cd9cc113ca6c0e
x86emul: fix rIP handling

Deal with rIP just like with any other register: Truncate to designated
width upon entry, write back the zero-extended 32-bit value when
emulating 32-bit code, and leave the upper 48 bits unchanged for 16-bit
code.

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