diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-05 14:31:59 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-26 15:31:37 +0200 |
commit | e92dd33224603ee5a42e0b13b6e055691325ba47 (patch) | |
tree | 3b762268eaf75aabd579dabc94df8343f837fc74 /target/alpha | |
parent | 83fb360d6a60b0a77dce3d3643d1a5311a235e58 (diff) | |
download | qemu-e92dd33224603ee5a42e0b13b6e055691325ba47.zip qemu-e92dd33224603ee5a42e0b13b6e055691325ba47.tar.gz qemu-e92dd33224603ee5a42e0b13b6e055691325ba47.tar.bz2 |
target: Define TCG_GUEST_DEFAULT_MO in 'cpu-param.h'
accel/tcg/ files requires the following definitions:
- TARGET_LONG_BITS
- TARGET_PAGE_BITS
- TARGET_PHYS_ADDR_SPACE_BITS
- TCG_GUEST_DEFAULT_MO
The first 3 are defined in "cpu-param.h". The last one
in "cpu.h", with a bunch of definitions irrelevant for
TCG. By moving the TCG_GUEST_DEFAULT_MO definition to
"cpu-param.h", we can simplify various accel/tcg includes.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20231211212003.21686-4-philmd@linaro.org>
Diffstat (limited to 'target/alpha')
-rw-r--r-- | target/alpha/cpu-param.h | 3 | ||||
-rw-r--r-- | target/alpha/cpu.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/target/alpha/cpu-param.h b/target/alpha/cpu-param.h index c969cb0..5ce213a 100644 --- a/target/alpha/cpu-param.h +++ b/target/alpha/cpu-param.h @@ -27,4 +27,7 @@ # define TARGET_VIRT_ADDR_SPACE_BITS (30 + TARGET_PAGE_BITS) #endif +/* Alpha processors have a weak memory model */ +#define TCG_GUEST_DEFAULT_MO (0) + #endif diff --git a/target/alpha/cpu.h b/target/alpha/cpu.h index 7188a40..f9e2ecb 100644 --- a/target/alpha/cpu.h +++ b/target/alpha/cpu.h @@ -24,9 +24,6 @@ #include "exec/cpu-defs.h" #include "qemu/cpu-float.h" -/* Alpha processors have a weak memory model */ -#define TCG_GUEST_DEFAULT_MO (0) - #define ICACHE_LINE_SIZE 32 #define DCACHE_LINE_SIZE 32 |