summaryrefslogtreecommitdiff
path: root/target-i386/translate.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-06 12:54:30 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-06 12:54:30 +0000
commitec9d6075b484fed47d55bf1590148f1fc081538c (patch)
treee7edb6a00e7e7abb9a81e30c28ae28830049379b /target-i386/translate.c
parent262ffdae6fdad3f6dab855a090543f5faa77ec96 (diff)
downloadqemu-ec9d6075b484fed47d55bf1590148f1fc081538c.zip
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
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r--target-i386/translate.c4
1 files changed, 3 insertions, 1 deletions
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;