OSDN Git Service

target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Oct 2023 08:58:06 +0000 (10:58 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 11:13:27 +0000 (12:13 +0100)
commit2d56be5a29eb05e33d9fb74bdf55013c5016d5ba
tree7afef9daf6cec7f5fe1b8843b8f367e8d549d538
parent66125f9360f2d698d772d045d1665ff6d380c6c7
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>
24 files changed:
target/alpha/cpu-qom.h
target/alpha/cpu.h
target/avr/cpu-qom.h
target/avr/cpu.h
target/cris/cpu-qom.h
target/cris/cpu.h
target/i386/cpu-qom.h
target/i386/cpu.h
target/m68k/cpu-qom.h
target/m68k/cpu.h
target/mips/cpu-qom.h
target/mips/cpu.h
target/rx/cpu-qom.h
target/rx/cpu.h
target/s390x/cpu-qom.h
target/s390x/cpu.h
target/sh4/cpu-qom.h
target/sh4/cpu.h
target/sparc/cpu-qom.h
target/sparc/cpu.h
target/tricore/cpu-qom.h
target/tricore/cpu.h
target/xtensa/cpu-qom.h
target/xtensa/cpu.h