summary refs log tree commit diff stats
path: root/target/avr/cpu-param.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-05 14:31:59 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-26 15:31:37 +0200
commite92dd33224603ee5a42e0b13b6e055691325ba47 (patch)
tree3b762268eaf75aabd579dabc94df8343f837fc74 /target/avr/cpu-param.h
parent83fb360d6a60b0a77dce3d3643d1a5311a235e58 (diff)
downloadfocaccia-qemu-e92dd33224603ee5a42e0b13b6e055691325ba47.tar.gz
focaccia-qemu-e92dd33224603ee5a42e0b13b6e055691325ba47.zip
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/avr/cpu-param.h')
-rw-r--r--target/avr/cpu-param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/avr/cpu-param.h b/target/avr/cpu-param.h
index 9a92bc74fc..93c2f470d0 100644
--- a/target/avr/cpu-param.h
+++ b/target/avr/cpu-param.h
@@ -32,4 +32,6 @@
 #define TARGET_PHYS_ADDR_SPACE_BITS 24
 #define TARGET_VIRT_ADDR_SPACE_BITS 24
 
+#define TCG_GUEST_DEFAULT_MO 0
+
 #endif