]> Git Repo - qemu.git/commit - hw/riscv/virt.c
hw/riscv: Use the CPU to determine if 32-bit
authorAlistair Francis <[email protected]>
Wed, 16 Dec 2020 18:23:08 +0000 (10:23 -0800)
committerAlistair Francis <[email protected]>
Fri, 18 Dec 2020 05:56:44 +0000 (21:56 -0800)
commit3ed2b8ac2dacc22c088ec5793ecde31db2fa0414
tree734bb793e6c561360a30de8ecca155ebf2db112a
parent094b072c6819f251e4cba608585f0f5f59259797
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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 8ab7614e5df93ab5267788b73dcd75f9f5615e82.1608142916[email protected]
hw/riscv/boot.c
hw/riscv/sifive_u.c
hw/riscv/spike.c
hw/riscv/virt.c
include/hw/riscv/boot.h
This page took 0.027991 seconds and 4 git commands to generate.