target/riscv: remove cpu->cfg.ext_h
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Thu, 6 Apr 2023 18:03:45 +0000 (15:03 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 5 May 2023 00:49:50 +0000 (10:49 +1000)
commitb5c042e8a0300989b7e9ce0d24b6535c77439d3e
tree9d5865c4f7d000babb9b5c39aa4a3207839d1a7f
parente17801e1708da60371550af5a67e14c7d8db4eae
target/riscv: remove cpu->cfg.ext_h

Create a new "h" RISCVCPUMisaExtConfig property that will update
env->misa_ext* with RVH. Instances of cpu->cfg.ext_h and similar are
replaced with riscv_has_ext(env, RVH).

Remove the old "h" property and 'ext_h' from RISCVCPUConfig.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230406180351.570807-15-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c
target/riscv/cpu.h