[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble ph
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble physical bits |
Date: |
Tue, 8 Feb 2022 16:22:34 +0100 |
The only accelerator allowed to use zero as default value is TCG.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/i386/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index aa9e636800..16523a78d9 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -6384,6 +6384,7 @@ static void x86_cpu_realizefn(DeviceState *dev, Error
**errp)
* In this case, the default is the value used by TCG (40).
*/
if (cpu->phys_bits == 0) {
+ assert(tcg_enabled());
cpu->phys_bits = TCG_PHYS_ADDR_BITS;
}
} else {
--
2.34.1
- [PATCH 00/13] exec: Move translation declarations to 'translate-all.h', Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 01/13] meson: Display libfdt as disabled when system emulation is disabled, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 02/13] exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 03/13] accel: Elide kvm_update_guest_debug by checking kvm_supports_guest_debug, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble physical bits,
Philippe Mathieu-Daudé <=
- [PATCH 06/13] cpu: Add missing 'exec/exec-all.h' and ''exec/exec-all.h'' headers, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 05/13] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 07/13] cpu: Move common code to cpu-common, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 08/13] target: Include missing 'cpu.h', Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 09/13] target: Use forward declared type instead of structure type, Philippe Mathieu-Daudé, 2022/02/08