[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 2/9] target/i386: Check for USER_ONLY definition instead o
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH v2 2/9] target/i386: Check for USER_ONLY definition instead of SOFTMMU one |
Date: |
Tue, 6 Jun 2023 00:24:13 +0200 |
Since we *might* have user emulation with softmmu,
replace the system emulation check by !user emulation one.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
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 5cf14311a6..750253e679 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -6915,7 +6915,7 @@ static void i386_tr_init_disas_context(DisasContextBase
*dcbase, CPUState *cpu)
dc->popl_esp_hack = 0;
/* select memory access functions */
dc->mem_index = 0;
-#ifdef CONFIG_SOFTMMU
+#ifndef CONFIG_USER_ONLY
dc->mem_index = cpu_mmu_index(env, false);
#endif
dc->cpuid_features = env->features[FEAT_1_EDX];
--
2.38.1
- [RFC PATCH v2 0/9] bulk: Replace CONFIG_SOFTMMU by !CONFIG_USER_ONLY/CONFIG_SYSTEM_ONLY, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 1/9] target/tricore: Remove pointless CONFIG_SOFTMMU guard, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 2/9] target/i386: Check for USER_ONLY definition instead of SOFTMMU one,
Philippe Mathieu-Daudé <=
- [RFC PATCH v2 3/9] target/m68k: Check for USER_ONLY definition instead of SOFTMMU one, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 4/9] target/ppc: Check for USER_ONLY definition instead of SOFTMMU one, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 5/9] hw/core/cpu: Check for USER_ONLY definition instead of SOFTMMU one, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 6/9] accel/tcg: Check for USER_ONLY definition instead of SOFTMMU one, Philippe Mathieu-Daudé, 2023/06/05
- [RFC PATCH v2 7/9] meson: Alias CONFIG_SOFTMMU -> CONFIG_SYSTEM_ONLY, Philippe Mathieu-Daudé, 2023/06/05