qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/4] Define ePMP mseccfg


From: Alistair Francis
Subject: Re: [PATCH v2 1/4] Define ePMP mseccfg
Date: Tue, 25 Aug 2020 15:31:51 -0700

On Mon, Aug 10, 2020 at 5:25 PM Hou Weiying <weiying_hou@outlook.com> wrote:
>
> Currently using 0x390 and 0x391 for x-epmp (experimental). This may change in 
> the future spec.
>
> Signed-off-by: Hongzheng-Li <Ethan.Lee.QNL@gmail.com>
> Signed-off-by: Hou Weiying <weiying_hou@outlook.com>
> Signed-off-by: Myriad-Dreamin <camiyoru@gmail.com>
> ---
>  target/riscv/cpu_bits.h | 3 +++
>  target/riscv/gdbstub.c  | 2 ++
>  2 files changed, 5 insertions(+)
>
> diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h
> index 8117e8b5a7..9c35179983 100644
> --- a/target/riscv/cpu_bits.h
> +++ b/target/riscv/cpu_bits.h
> @@ -229,6 +229,9 @@
>  #define CSR_MTINST          0x34a
>  #define CSR_MTVAL2          0x34b
>
> +/* Enhanced PMP */
> +#define CSR_MSECCFG         0x390
> +#define CSR_MSECCFGH        0x391

I was hoping that this address would be set by this time, but that
doesn't seem to have happened. I'll try and get this going.

I think we will have to wait for the address to be finalised before
this can be merged.

Alistair

>  /* Physical Memory Protection */
>  #define CSR_PMPCFG0         0x3a0
>  #define CSR_PMPCFG1         0x3a1
> diff --git a/target/riscv/gdbstub.c b/target/riscv/gdbstub.c
> index eba12a86f2..de5551604a 100644
> --- a/target/riscv/gdbstub.c
> +++ b/target/riscv/gdbstub.c
> @@ -132,6 +132,8 @@ static int csr_register_map[] = {
>      CSR_MIP,
>      CSR_MTINST,
>      CSR_MTVAL2,
> +    CSR_MSECCFG,
> +    CSR_MSECCFGH,
>      CSR_PMPCFG0,
>      CSR_PMPCFG1,
>      CSR_PMPCFG2,
> --
> 2.20.1
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]