[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 4/8] [RISCV_PM] Add J extension state description
From: |
Alistair Francis |
Subject: |
Re: [PATCH v14 4/8] [RISCV_PM] Add J extension state description |
Date: |
Tue, 19 Oct 2021 16:53:03 +1000 |
On Mon, Oct 18, 2021 at 3:36 AM Alexey Baturo <baturo.alexey@gmail.com> wrote:
>
> Signed-off-by: Alexey Baturo <space.monkey.delivers@gmail.com>
> ---
> target/riscv/machine.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/target/riscv/machine.c b/target/riscv/machine.c
> index 16a08302da..4d99880797 100644
> --- a/target/riscv/machine.c
> +++ b/target/riscv/machine.c
> @@ -84,6 +84,14 @@ static bool vector_needed(void *opaque)
> return riscv_has_ext(env, RVV);
> }
>
> +static bool pointermasking_needed(void *opaque)
> +{
> + RISCVCPU *cpu = opaque;
> + CPURISCVState *env = &cpu->env;
> +
> + return riscv_has_ext(env, RVJ);
> +}
> +
> static const VMStateDescription vmstate_vector = {
> .name = "cpu/vector",
> .version_id = 1,
> @@ -138,6 +146,24 @@ static const VMStateDescription vmstate_hyper = {
> }
> };
>
> +static const VMStateDescription vmstate_pointermasking = {
> + .name = "cpu/pm",
Can we write "cpu/pointer_masking"? pm sounds like power management
Alistair
- [PATCH v14 0/8] RISC-V Pointer Masking implementation, Alexey Baturo, 2021/10/17
- [PATCH v14 1/8] [RISCV_PM] Add J-extension into RISC-V, Alexey Baturo, 2021/10/17
- [PATCH v14 2/8] [RISCV_PM] Add CSR defines for RISC-V PM extension, Alexey Baturo, 2021/10/17
- [PATCH v14 3/8] [RISCV_PM] Support CSRs required for RISC-V PM extension except for the h-mode, Alexey Baturo, 2021/10/17
- [PATCH v14 5/8] [RISCV_PM] Print new PM CSRs in QEMU logs, Alexey Baturo, 2021/10/17
- [PATCH v14 4/8] [RISCV_PM] Add J extension state description, Alexey Baturo, 2021/10/17
- Re: [PATCH v14 4/8] [RISCV_PM] Add J extension state description,
Alistair Francis <=
- [PATCH v14 6/8] [RISCV_PM] Support pointer masking for RISC-V for i/c/f/d/a types of instructions, Alexey Baturo, 2021/10/17
- [PATCH v14 8/8] [RISCV_PM] Allow experimental J-ext to be turned on, Alexey Baturo, 2021/10/17
- [PATCH v14 7/8] [RISCV_PM] Implement address masking functions required for RISC-V Pointer Masking extension, Alexey Baturo, 2021/10/17