]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
KVM: x86 emulator: Add DstAcc operand type
authorGuillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Fri, 12 Sep 2008 11:50:25 +0000 (13:50 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:16:14 +0000 (10:16 +0200)
commit9c9fddd0e784346a6d0ce82ed20d9ad21f3c8a2c
treec1bb4964cf454611ff2fafae8a57f464e78a1872
parentdefed7ed926eca9f178a632df05baa866abe754e
KVM: x86 emulator: Add DstAcc operand type

Add DstAcc operand type. That means that there are 4 bits now for
DstMask.

"In the good old days cpus would have only one register that was able to
 fully participate in arithmetic operations, typically called A for
 Accumulator.  The x86 retains this tradition by having special, shorter
 encodings for the A register (like the cmp opcode), and even some
 instructions that only operate on A (like mul).

 SrcAcc and DstAcc would accommodate these instructions by decoding A
 into the corresponding 'struct operand'."
  -- Avi Kivity

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c