Commit ec9d6075b484fed47d55bf1590148f1fc081538c
1 parent
262ffdae
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
Showing
1 changed file
with
3 additions
and
1 deletions
target-i386/translate.c
| @@ -3788,9 +3788,11 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) | @@ -3788,9 +3788,11 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) | ||
| 3788 | } | 3788 | } |
| 3789 | break; | 3789 | break; |
| 3790 | 3790 | ||
| 3791 | + case 0x82: | ||
| 3792 | + if (CODE64(s)) | ||
| 3793 | + goto illegal_op; | ||
| 3791 | case 0x80: /* GRP1 */ | 3794 | case 0x80: /* GRP1 */ |
| 3792 | case 0x81: | 3795 | case 0x81: |
| 3793 | - case 0x82: | ||
| 3794 | case 0x83: | 3796 | case 0x83: |
| 3795 | { | 3797 | { |
| 3796 | int val; | 3798 | int val; |