From ec9d6075b484fed47d55bf1590148f1fc081538c Mon Sep 17 00:00:00 2001 From: bellard Date: Fri, 6 Jun 2008 12:54:30 +0000 Subject: undocumented 0x82 opcode is invalid in 64 bit code git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4687 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target-i386/translate.c') diff --git a/target-i386/translate.c b/target-i386/translate.c index 85495a9d1d..14903b4dfe 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -3788,9 +3788,11 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) } break; + case 0x82: + if (CODE64(s)) + goto illegal_op; case 0x80: /* GRP1 */ case 0x81: - case 0x82: case 0x83: { int val; -- cgit v1.2.3