x86/emul: Improvements to internal users of decode_register()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Jan 2018 12:16:12 +0000 (12:16 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 31 Jan 2018 12:23:11 +0000 (12:23 +0000)
commit9885e4d81ff27e51a221c7987cbc36c520cb0b21
tree0e02d98a3c869ffba3bb20879949c896e7fad75b
parent8e67c41795d426e53ef23fe3d220b4d9b4dc2fb4
x86/emul: Improvements to internal users of decode_register()

Most users of decode_register() can be replaced with decode_gpr() right away.

For the few sites which do care about possibly using the legacy byteop
encoding, rename decode_register() to _decode_gpr() (to match its non-legacy
counterpart), and adjust its 'int highbyte_regs' parameter to the more correct
'bool legacy'.

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