[PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1

Weiwei Li posted 2 patches 10 months, 3 weeks ago
Failed in applying to current master (apply log)
target/riscv/cpu.h        | 49 +++++++++++++++++++++++++++++++++------
target/riscv/cpu_helper.c |  8 +++++--
target/riscv/csr.c        | 27 +++++++++++++++------
target/riscv/translate.c  | 13 ++++++++++-
4 files changed, 80 insertions(+), 17 deletions(-)
[PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1
Posted by Weiwei Li 10 months, 3 weeks ago
Currently, we use the current env->xl as the xlen for address. However, the xlen for data address should be changed to the xlen related to MPP when MPRV=1.

The port is available here:
https://github.com/plctlab/plct-qemu/tree/plct-addr-xl-upstream

Weiwei Li (2):
  target/riscv: Add additional xlen for address when MPRV=1
  target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV

 target/riscv/cpu.h        | 49 +++++++++++++++++++++++++++++++++------
 target/riscv/cpu_helper.c |  8 +++++--
 target/riscv/csr.c        | 27 +++++++++++++++------
 target/riscv/translate.c  | 13 ++++++++++-
 4 files changed, 80 insertions(+), 17 deletions(-)

-- 
2.25.1
Re: [PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1
Posted by Alistair Francis 10 months, 2 weeks ago
On Wed, Jun 14, 2023 at 1:27 PM Weiwei Li <liweiwei@iscas.ac.cn> wrote:
>
> Currently, we use the current env->xl as the xlen for address. However, the xlen for data address should be changed to the xlen related to MPP when MPRV=1.
>
> The port is available here:
> https://github.com/plctlab/plct-qemu/tree/plct-addr-xl-upstream
>
> Weiwei Li (2):
>   target/riscv: Add additional xlen for address when MPRV=1
>   target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV

Thanks!

Applied to riscv-to-apply.next

Alistair

>
>  target/riscv/cpu.h        | 49 +++++++++++++++++++++++++++++++++------
>  target/riscv/cpu_helper.c |  8 +++++--
>  target/riscv/csr.c        | 27 +++++++++++++++------
>  target/riscv/translate.c  | 13 ++++++++++-
>  4 files changed, 80 insertions(+), 17 deletions(-)
>
> --
> 2.25.1
>
>