From: Richard Henderson Date: Wed, 2 Jun 2021 03:55:11 +0000 (-0700) Subject: target/i386: Fix decode of cr8 X-Git-Tag: qemu-xen-4.16.0-rc4~135^2~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e18a6ec8c4516f2c2b973f452207e74c1b608414;p=qemu-xen.git 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 Signed-off-by: Richard Henderson Message-Id: <20210602035511.96834-1-richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 834186bcae..a7f5c0c8f2 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -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;