]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: decode extended accumulator explicity
authorAvi Kivity <avi.kivity@gmail.com>
Sat, 9 Feb 2013 09:31:45 +0000 (11:31 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 12:43:16 +0000 (15:43 +0300)
commit15957560b745d75aedb7e1bb5cf5fb0ac15ebf9c
treea9e4a3c869df5f87c43a63601e119a4f3af317fe
parent5ca16f80debbdfc8cf9eda76cd28eff6a4ff8cd7
KVM: x86 emulator: decode extended accumulator explicity

Single-operand MUL and DIV access an extended accumulator: AX for byte
instructions, and DX:AX, EDX:EAX, or RDX:RAX for larger-sized instructions.
Add support for fetching the extended accumulator.

In order not to change things too much, RDX is loaded into Src2, which is
already loaded by fastop().  This avoids increasing register pressure on
i386.

Gleb: disable src writeback for ByteOp div/mul.

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