]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: use misa_mxl_max to populate isa string rather than TARGET_LONG_BITS
authorConor Dooley <conor.dooley@microchip.com>
Wed, 24 Jan 2024 12:55:49 +0000 (12:55 +0000)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 9 Feb 2024 10:43:14 +0000 (20:43 +1000)
commitafa42c21b5984bb9846e498bb00b1bdc28f56ab5
treec6ec73a3fab093425df8fa33226ac179586b7188
parent79b50e2c80e50391b7f06b275fbc11f9a4ee168a
target/riscv: use misa_mxl_max to populate isa string rather than TARGET_LONG_BITS

A cpu may not have the same xlen as the compile time target, and
misa_mxl_max is the source of truth for what the hart supports.

The conversion from misa_mxl_max to xlen already has one user, so
introduce a helper and use that to populate the isa string.

Link: https://lore.kernel.org/qemu-riscv/20240108-efa3f83dcd3997dc0af458d7@orel/
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240124-swear-monthly-56c281f809a6@spud>
[ Changes by AF:
 - Convert to use RISCVCPUClass *mcc
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/gdbstub.c