]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV
authorWeiwei Li <liweiwei@iscas.ac.cn>
Wed, 14 Jun 2023 03:25:47 +0000 (11:25 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 10 Jul 2023 12:29:14 +0000 (22:29 +1000)
commitef1ba32afff6b3d9be377804904b784da6594219
treeddcfce6fcbcb2f00b9f5fecf4896ee056826aa61
parent3a610f5430f61bd67f0ac78ef40c8d3bd2b4f8ee
target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV

Pointer mask is also affected by MPRV which means cur_pmbase/pmmask
should also take MPRV into consideration. As pointer mask for instruction
is not supported currently, so we can directly update cur_pmbase/pmmask
based on address related mode and xlen affected by MPRV now.

Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230614032547.35895-3-liweiwei@iscas.ac.cn>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c
target/riscv/csr.c