Skip to contentSkip to conversation

target/i386: Fix decode of cr8

PATCH Applied Richard Henderson 2 participants 2 messages Jun 2, 2021 – Jun 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386: Fix decode of cr8

A recent cleanup did not recognize that there are two ways to encode cr8: one via the LOCK and the other via REX.

Fixes 7eff2e7c

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/380

---
 target/i386/tcg/translate.c | 1 +
 1 file changed, 1 insertion(+)
target/i386/tcg/translate.c +1 -0
index 834186bcae..a7f5c0c8f2 100644
@@ -8091,6 +8091,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
         case 2:
         case 3:
         case 4:
+        case 8:
             break;
         default:
             goto unknown_op;
Signature · 1 line
2.25.1
#1 lore raw
Quoted 16 lines · Richard Henderson

A recent cleanup did not recognize that there are two ways to encode cr8: one via the LOCK and the other via REX.

Fixes 7eff2e7c

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/380

---
  target/i386/tcg/translate.c | 1 +
  1 file changed, 1 insertion(+)
target/i386/tcg/translate.c +0 -0
index 834186bcae..a7f5c0c8f2 100644

target/i386/tcg/translate.c static target_ulong disas_insn(DisasContext *s, CPUState *cpu) · line 8097

Quoted 7 lines
target/i386/tcg/translate.c +1 -0
@@ -8091,6 +8091,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
          case 2:
          case 3:
          case 4:
+        case 8:
              break;
          default:
              goto unknown_op;

Queued, thanks.

Paolo