diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-04-12 06:36:46 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:41 -0400 |
commit | 84ce66a6865192567172f08ab5269aa380fa6ead (patch) | |
tree | c2b30204eef286557681a9937f73e0eb2deffc9f /arch/x86/kvm | |
parent | 341de7e3728ade102eaadf56af404f4ce865a73d (diff) |
KVM: x86 emulator: Completely decode in/out at decoding stage
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index 0988a13063dc..c2f55ca84fdf 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c | |||
@@ -190,8 +190,8 @@ static u32 opcode_table[256] = { | |||
190 | 0, 0, 0, 0, 0, 0, 0, 0, | 190 | 0, 0, 0, 0, 0, 0, 0, 0, |
191 | /* 0xE0 - 0xE7 */ | 191 | /* 0xE0 - 0xE7 */ |
192 | 0, 0, 0, 0, | 192 | 0, 0, 0, 0, |
193 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, | 193 | ByteOp | SrcImmUByte, SrcImmUByte, |
194 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, | 194 | ByteOp | SrcImmUByte, SrcImmUByte, |
195 | /* 0xE8 - 0xEF */ | 195 | /* 0xE8 - 0xEF */ |
196 | SrcImm | Stack, SrcImm | ImplicitOps, | 196 | SrcImm | Stack, SrcImm | ImplicitOps, |
197 | SrcImm | Src2Imm16, SrcImmByte | ImplicitOps, | 197 | SrcImm | Src2Imm16, SrcImmByte | ImplicitOps, |
@@ -1777,12 +1777,12 @@ special_insn: | |||
1777 | break; | 1777 | break; |
1778 | case 0xe4: /* inb */ | 1778 | case 0xe4: /* inb */ |
1779 | case 0xe5: /* in */ | 1779 | case 0xe5: /* in */ |
1780 | port = insn_fetch(u8, 1, c->eip); | 1780 | port = c->src.val; |
1781 | io_dir_in = 1; | 1781 | io_dir_in = 1; |
1782 | goto do_io; | 1782 | goto do_io; |
1783 | case 0xe6: /* outb */ | 1783 | case 0xe6: /* outb */ |
1784 | case 0xe7: /* out */ | 1784 | case 0xe7: /* out */ |
1785 | port = insn_fetch(u8, 1, c->eip); | 1785 | port = c->src.val; |
1786 | io_dir_in = 0; | 1786 | io_dir_in = 0; |
1787 | goto do_io; | 1787 | goto do_io; |
1788 | case 0xe8: /* call (near) */ { | 1788 | case 0xe8: /* call (near) */ { |