[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/45] target/i386/tcg: Fix RDPID feature check
From: |
Paolo Bonzini |
Subject: |
[PULL 10/45] target/i386/tcg: Fix RDPID feature check |
Date: |
Tue, 4 Jun 2024 08:43:34 +0200 |
From: Zhao Liu <zhao1.liu@intel.com>
DisasContext.cpuid_ext_features indicates CPUID.01H.ECX.
Use DisasContext.cpuid_7_0_ecx_features field to check RDPID feature bit
(CPUID_7_0_ECX_RDPID).
Fixes: 6750485bf42a ("target/i386: implement RDPID in TCG")
Inspired-by: Xinyu Li <lixinyu20s@ict.ac.cn>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20240603080723.1256662-1-zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/i386/tcg/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index 6dedfe94c04..0486ab69112 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -3199,7 +3199,7 @@ static void disas_insn_old(DisasContext *s, CPUState
*cpu, int b)
goto illegal_op;
}
if (s->prefix & PREFIX_REPZ) {
- if (!(s->cpuid_ext_features & CPUID_7_0_ECX_RDPID)) {
+ if (!(s->cpuid_7_0_ecx_features & CPUID_7_0_ECX_RDPID)) {
goto illegal_op;
}
gen_helper_rdpid(s->T0, tcg_env);
--
2.45.1
- [PULL 02/45] host/i386: nothing looks at CPUINFO_SSE4, (continued)
- [PULL 02/45] host/i386: nothing looks at CPUINFO_SSE4, Paolo Bonzini, 2024/06/04
- [PULL 01/45] virtio-blk: remove SCSI passthrough functionality, Paolo Bonzini, 2024/06/04
- [PULL 03/45] meson: assume x86-64-v2 baseline ISA, Paolo Bonzini, 2024/06/04
- [PULL 05/45] host/i386: assume presence of SSE2, Paolo Bonzini, 2024/06/04
- [PULL 04/45] host/i386: assume presence of CMOV, Paolo Bonzini, 2024/06/04
- [PULL 06/45] host/i386: assume presence of SSSE3, Paolo Bonzini, 2024/06/04
- [PULL 08/45] target/i386: fix SSE and SSE2 feature check, Paolo Bonzini, 2024/06/04
- [PULL 07/45] host/i386: assume presence of POPCNT, Paolo Bonzini, 2024/06/04
- [PULL 09/45] target/i386: fix memory opsize for Mov to/from Seg, Paolo Bonzini, 2024/06/04
- [PULL 10/45] target/i386/tcg: Fix RDPID feature check,
Paolo Bonzini <=
- [PULL 12/45] update-linux-headers: fix forwarding to asm-generic headers, Paolo Bonzini, 2024/06/04
- [PULL 11/45] target/i386: fix xsave.flat from kvm-unit-tests, Paolo Bonzini, 2024/06/04
- [PULL 13/45] update-linux-headers: move pvpanic.h to correct directory, Paolo Bonzini, 2024/06/04
- [PULL 14/45] linux-headers: Update to current kvm/next, Paolo Bonzini, 2024/06/04
- [PULL 15/45] update-linux-headers: import linux/kvm_para.h header, Paolo Bonzini, 2024/06/04
- [PULL 16/45] machine: allow early use of machine_require_guest_memfd, Paolo Bonzini, 2024/06/04
- [PULL 17/45] i386/sev: Replace error_report with error_setg, Paolo Bonzini, 2024/06/04
- [PULL 18/45] i386/sev: Introduce "sev-common" type to encapsulate common SEV state, Paolo Bonzini, 2024/06/04
- [PULL 19/45] i386/sev: Move sev_launch_update to separate class method, Paolo Bonzini, 2024/06/04