On 12/16/20 12:23 PM, Alistair Francis wrote: > 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.fran...@wdc.com> > --- > include/hw/riscv/boot.h | 8 +++++--- > hw/riscv/boot.c | 31 ++++++++++--------------------- > hw/riscv/sifive_u.c | 10 +++++----- > hw/riscv/spike.c | 8 ++++---- > hw/riscv/virt.c | 9 +++++---- > 5 files changed, 29 insertions(+), 37 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~