target/riscv/cpu.c: add riscv_cpu_validate_misa_mxl()
commitf5664064cc808dc5057627fbb0e5d68a394f2fc1
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Wed, 17 May 2023 13:57:11 +0000 (17 10:57 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 13 Jun 2023 07:03:07 +0000 (13 17:03 +1000)
treed8e1c0da13aaed5fb68509f736cdbdb36cf8869f
parentbd30559568607324f467bff66d8644fc08cb4729
target/riscv/cpu.c: add riscv_cpu_validate_misa_mxl()

Let's remove more code that is open coded in riscv_cpu_realize() and put
it into a helper. Let's also add an error message instead of just
asserting out if env->misa_mxl_max != env->misa_mlx.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230517135714.211809-9-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c