[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/6] i386: Remove unused parameter "uint32_t bit" in feature_w
|
From: |
Wang, Lei |
|
Subject: |
[PATCH v2 2/6] i386: Remove unused parameter "uint32_t bit" in feature_word_description() |
|
Date: |
Wed, 2 Nov 2022 01:52:52 -0700 |
Parameter "uint32_t bit" is not used in function feature_word_description(),
so remove it.
Signed-off-by: Wang, Lei <lei4.wang@intel.com>
---
target/i386/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index e98780773c..0083a2a7f7 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -4290,7 +4290,7 @@ static const TypeInfo max_x86_cpu_type_info = {
.class_init = max_x86_cpu_class_init,
};
-static char *feature_word_description(FeatureWordInfo *f, uint32_t bit)
+static char *feature_word_description(FeatureWordInfo *f)
{
assert(f->type == CPUID_FEATURE_WORD || f->type == MSR_FEATURE_WORD);
@@ -4329,6 +4329,7 @@ static void mark_unavailable_features(X86CPU *cpu,
FeatureWord w, uint64_t mask,
CPUX86State *env = &cpu->env;
FeatureWordInfo *f = &feature_word_info[w];
int i;
+ g_autofree char *feat_word_str = feature_word_description(f);
if (!cpu->force_features) {
env->features[w] &= ~mask;
@@ -4341,7 +4342,6 @@ static void mark_unavailable_features(X86CPU *cpu,
FeatureWord w, uint64_t mask,
for (i = 0; i < 64; ++i) {
if ((1ULL << i) & mask) {
- g_autofree char *feat_word_str = feature_word_description(f, i);
warn_report("%s: %s%s%s [bit %d]",
verbose_prefix,
feat_word_str,
--
2.34.1
- [PATCH v2 0/6] Support for new CPU model SapphireRapids, Wang, Lei, 2022/11/02
- [PATCH v2 1/6] i386: Introduce FeatureWordInfo for AMX CPUID leaf 0x1D and 0x1E, Wang, Lei, 2022/11/02
- [PATCH v2 3/6] i386: Introduce new struct "MultiBitFeatureInfo" for multi-bit features, Wang, Lei, 2022/11/02
- [PATCH v2 5/6] i386: Initialize AMX CPUID leaves with corresponding env->features[] leaves, Wang, Lei, 2022/11/02
- [PATCH v2 2/6] i386: Remove unused parameter "uint32_t bit" in feature_word_description(),
Wang, Lei <=
- [PATCH v2 4/6] i386: Mask and report unavailable multi-bit feature values, Wang, Lei, 2022/11/02
- [PATCH v2 6/6] i386: Add new CPU model SapphireRapids, Wang, Lei, 2022/11/02