mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
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>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* QEMU AVR CPU
|
||||
* QEMU AVR CPU QOM header (target agnostic)
|
||||
*
|
||||
* Copyright (c) 2016-2020 Michael Rolnik
|
||||
*
|
||||
@@ -28,6 +28,9 @@
|
||||
|
||||
OBJECT_DECLARE_CPU_TYPE(AVRCPU, AVRCPUClass, AVR_CPU)
|
||||
|
||||
#define AVR_CPU_TYPE_SUFFIX "-" TYPE_AVR_CPU
|
||||
#define AVR_CPU_TYPE_NAME(name) (name AVR_CPU_TYPE_SUFFIX)
|
||||
|
||||
/**
|
||||
* AVRCPUClass:
|
||||
* @parent_realize: The parent class' realize handler.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user