]> Pileus Git - ~andy/linux/commit
KVM: x86 emulator: Avoid pushing back ModRM byte fetched for group decoding
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Mon, 30 Apr 2012 08:48:25 +0000 (17:48 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 6 May 2012 13:15:58 +0000 (16:15 +0300)
commit9f4260e73ac43aaa91eb5de95950e1de7002f467
tree9984a53a3ec8ba905cf209d02686f415ada5a425
parent1c2545be05f436523cabc54087c6a60ea10110d3
KVM: x86 emulator: Avoid pushing back ModRM byte fetched for group decoding

Although ModRM byte is fetched for group decoding, it is soon pushed
back to make decode_modrm() fetch it later again.

Now that ModRM flag can be found in the top level opcode tables, fetch
ModRM byte before group decoding to make the code simpler.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c