qemu-e2k/hw/riscv
Alistair Francis 3ed2b8ac2d hw/riscv: Use the CPU to determine if 32-bit
Instead of using string compares to determine if a RISC-V machine is
using 32-bit or 64-bit CPUs we can use the initalised CPUs. This avoids
us having to maintain a list of CPU names to compare against.

This commit also fixes the name of the function to match the
riscv_cpu_is_32bit() function.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 8ab7614e5df93ab5267788b73dcd75f9f5615e82.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:44 -08:00
..
boot.c hw/riscv: Use the CPU to determine if 32-bit 2020-12-17 21:56:44 -08:00
Kconfig hw/riscv: microchip_pfsoc: Connect the SYSREG module 2020-11-03 07:17:23 -08:00
meson.build hw/riscv: Always build riscv_hart.c 2020-09-09 15:54:19 -07:00
microchip_pfsoc.c hw/riscv: microchip_pfsoc: add QSPI NOR flash 2020-12-17 21:56:43 -08:00
numa.c hw/riscv: Add helpers for RISC-V multi-socket NUMA machines 2020-08-25 09:11:35 -07:00
opentitan.c hw/riscv: Load the kernel after the firmware 2020-10-22 12:00:22 -07:00
riscv_hart.c hw/riscv: hart: Add a new 'resetvec' property 2020-09-09 15:54:18 -07:00
sifive_e.c hw/riscv: Load the kernel after the firmware 2020-10-22 12:00:22 -07:00
sifive_u.c hw/riscv: Use the CPU to determine if 32-bit 2020-12-17 21:56:44 -08:00
spike.c hw/riscv: Use the CPU to determine if 32-bit 2020-12-17 21:56:44 -08:00
virt.c hw/riscv: Use the CPU to determine if 32-bit 2020-12-17 21:56:44 -08:00