aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-09 12:44:16 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-07 12:13:27 +0100
commitedf67fb4c2844a5dad7beb8e1b9634d01f141e72 (patch)
tree664ecb96881f74a2d2b665a925b7de91c005e162 /backends
parentb0a1333331abcf38b6d18a6b97f8f561afc4f48f (diff)
downloadqemu-edf67fb4c2844a5dad7beb8e1b9634d01f141e72.zip
qemu-edf67fb4c2844a5dad7beb8e1b9634d01f141e72.tar.gz
qemu-edf67fb4c2844a5dad7beb8e1b9634d01f141e72.tar.bz2
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>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions