[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/35] target/i386: add CPUID[EAX=7, ECX=0].ECX to DisasContext
From: |
Paolo Bonzini |
Subject: |
[PATCH 05/35] target/i386: add CPUID[EAX=7, ECX=0].ECX to DisasContext |
Date: |
Thu, 13 Oct 2022 23:46:21 +0200 |
TCG will shortly implement VAES instructions, so add the relevant feature
word to the DisasContext.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/i386/tcg/translate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index 4403d376e0..f3ba3275d2 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -116,6 +116,7 @@ typedef struct DisasContext {
int cpuid_ext2_features;
int cpuid_ext3_features;
int cpuid_7_0_ebx_features;
+ int cpuid_7_0_ecx_features;
int cpuid_xsave_features;
/* TCG local temps */
@@ -8851,6 +8852,7 @@ static void i386_tr_init_disas_context(DisasContextBase
*dcbase, CPUState *cpu)
dc->cpuid_ext2_features = env->features[FEAT_8000_0001_EDX];
dc->cpuid_ext3_features = env->features[FEAT_8000_0001_ECX];
dc->cpuid_7_0_ebx_features = env->features[FEAT_7_0_EBX];
+ dc->cpuid_7_0_ecx_features = env->features[FEAT_7_0_ECX];
dc->cpuid_xsave_features = env->features[FEAT_XSAVE];
dc->jmp_opt = !((cflags & CF_NO_GOTO_TB) ||
(flags & (HF_TF_MASK | HF_INHIBIT_IRQ_MASK)));
--
2.37.3
- [PATCH v3 00/35] target/i386: new decoder + AVX implementation, Paolo Bonzini, 2022/10/13
- [PATCH 01/35] target/i386: Define XMMReg and access macros, align ZMM registers, Paolo Bonzini, 2022/10/13
- [PATCH 02/35] target/i386: make ldo/sto operations consistent with ldq, Paolo Bonzini, 2022/10/13
- [PATCH 05/35] target/i386: add CPUID[EAX=7, ECX=0].ECX to DisasContext,
Paolo Bonzini <=
- [PATCH 06/35] target/i386: add CPUID feature checks to new decoder, Paolo Bonzini, 2022/10/13
- [PATCH 09/35] target/i386: validate SSE prefixes directly in the decoding table, Paolo Bonzini, 2022/10/13
- [PATCH 04/35] target/i386: add ALU load/writeback core, Paolo Bonzini, 2022/10/13
- [PATCH 03/35] target/i386: add core of new i386 decoder, Paolo Bonzini, 2022/10/13
- [PATCH 07/35] target/i386: add AVX_EN hflag, Paolo Bonzini, 2022/10/13
- [PATCH 10/35] target/i386: move scalar 0F 38 and 0F 3A instruction to new decoder, Paolo Bonzini, 2022/10/13
- [PATCH 16/35] target/i386: Introduce 256-bit vector helpers, Paolo Bonzini, 2022/10/13
- [PATCH 08/35] target/i386: validate VEX prefixes via the instructions' exception classes, Paolo Bonzini, 2022/10/13
- [PATCH 13/35] target/i386: support operand merging in binary scalar helpers, Paolo Bonzini, 2022/10/13
- [PATCH 19/35] target/i386: reimplement 0x0f 0x50-0x5f, add AVX, Paolo Bonzini, 2022/10/13