]> git.ipfire.org Git - thirdparty/qemu.git/commit
riscv: Change type of valid_vm_1_10_[32|64] to bool
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 3 Mar 2023 13:12:49 +0000 (14:12 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Mar 2023 16:09:41 +0000 (08:09 -0800)
commitbf1a6abec47b57b1e891db625cd93e45e0c5ecd5
treeb3235d7f82ddac5e83648d8e896097bdca933f85
parentc01756a76eaa3f315b449a2557a4d14d608eed9c
riscv: Change type of valid_vm_1_10_[32|64] to bool

This array is actually used as a boolean so swap its current char type
to a boolean and at the same time, change the type of validate_vm to
bool since it returns valid_vm_1_10_[32|64].

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-ID: <20230303131252.892893-3-alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
target/riscv/csr.c