qemu/target
Philippe Mathieu-Daudé edf67fb4c2 target/riscv: Use env_archcpu() in [check_]nanbox()
When CPUArchState* is available (here CPURISCVState*), we
can use the fast env_archcpu() macro to get ArchCPU* (here
RISCVCPU*). The QOM cast RISCV_CPU() macro will be slower
when building with --enable-qom-cast-debug.

Inspired-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20231009110239.66778-3-philmd@linaro.org>
2023-11-07 12:13:27 +01:00
..
alpha target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
arm target/arm: Move internal declarations from 'cpu-qom.h' to 'cpu.h' 2023-11-07 12:13:27 +01:00
avr target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
cris target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
hexagon target/hexagon: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
hppa target: Mention 'cpu-qom.h' is target agnostic 2023-11-07 12:13:27 +01:00
i386 target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
loongarch target/loongarch: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
m68k target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
microblaze target: Mention 'cpu-qom.h' is target agnostic 2023-11-07 12:13:27 +01:00
mips target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
nios2 target/nios2: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
openrisc target/openrisc: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
ppc target/ppc: Use env_archcpu() in helper_book3s_msgsndp() 2023-11-07 12:13:27 +01:00
riscv target/riscv: Use env_archcpu() in [check_]nanbox() 2023-11-07 12:13:27 +01:00
rx target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
s390x target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
sh4 target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
sparc target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
tricore target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
xtensa target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
Kconfig hw/loongarch: Add support loongson3 virt machine type. 2022-06-06 18:09:03 +00:00
meson.build target/loongarch: Add target build suport 2022-06-06 18:09:03 +00:00