summary refs log tree commit diff stats
path: root/target/avr/cpu.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-06 10:58:06 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-07 12:13:27 +0100
commit2d56be5a29eb05e33d9fb74bdf55013c5016d5ba (patch)
tree7afef9daf6cec7f5fe1b8843b8f367e8d549d538 /target/avr/cpu.h
parent66125f9360f2d698d772d045d1665ff6d380c6c7 (diff)
downloadfocaccia-qemu-2d56be5a29eb05e33d9fb74bdf55013c5016d5ba.tar.gz
focaccia-qemu-2d56be5a29eb05e33d9fb74bdf55013c5016d5ba.zip
target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h'
Hegerogeneous code needs access to the FOO_CPU_TYPE_NAME()
macro to resolve target CPU types. Move the declaration
(along with the required FOO_CPU_TYPE_SUFFIX) to "cpu-qom.h".

"target/foo/cpu-qom.h" is supposed to be target agnostic
(include-able by any target). Add such mention in the
header.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231013140116.255-7-philmd@linaro.org>
Diffstat (limited to 'target/avr/cpu.h')
-rw-r--r--target/avr/cpu.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/avr/cpu.h b/target/avr/cpu.h
index f8b065ed79..0487399cb2 100644
--- a/target/avr/cpu.h
+++ b/target/avr/cpu.h
@@ -28,8 +28,6 @@
 #error "AVR 8-bit does not support user mode"
 #endif
 
-#define AVR_CPU_TYPE_SUFFIX "-" TYPE_AVR_CPU
-#define AVR_CPU_TYPE_NAME(name) (name AVR_CPU_TYPE_SUFFIX)
 #define CPU_RESOLVING_TYPE TYPE_AVR_CPU
 
 #define TCG_GUEST_DEFAULT_MO 0