]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: convert DIV/IDIV to fastop
authorAvi Kivity <avi.kivity@gmail.com>
Sat, 9 Feb 2013 09:31:49 +0000 (11:31 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 12:43:21 +0000 (15:43 +0300)
commitf400008cbd4e34376accfc6e0ad45a808dce7ac9
treed3bc70c893d6623f4b1b70edf9cf1419accfea50
parent4b7dec5c2089d46ab977c6e0f49ac7926a923f03
KVM: x86 emulator: convert DIV/IDIV to fastop

Since DIV and IDIV can generate exceptions, we need an additional output
parameter indicating whether an execption has occured.  To avoid increasing
register pressure on i386, we use %rsi, which is already allocated for
the fastop code pointer.

Gleb: added comment about fop usage as exception indication.

Signed-off-by: Avi Kivity <avi.kivity@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/emulate.c