On Tue, Nov 23, 2021 at 8:58 PM Frédéric Pétrot
wrote:
>
> On 23/11/2021 07:09, Alistair Francis wrote:
> > On Sat, Nov 13, 2021 at 1:07 AM Frédéric Pétrot
> > wrote:
> >> +static bool rv128_needed(void *opaque)
> >> +{
> >> +RISCVCPU *cpu = opaque;
> >> +CPURISCVState *env = &cpu->env;
>
On 23/11/2021 07:09, Alistair Francis wrote:
On Sat, Nov 13, 2021 at 1:07 AM Frédéric Pétrot
wrote:
+static bool rv128_needed(void *opaque)
+{
+RISCVCPU *cpu = opaque;
+CPURISCVState *env = &cpu->env;
+
+return env->misa_mxl_max == MXL_RV128;
+}
I think it would just be better to
On Sat, Nov 13, 2021 at 1:07 AM Frédéric Pétrot
wrote:
>
> The upper 64-bit of the 128-bit registers have now a place inside
> the cpu state structure, and are created as globals for future use.
>
> Signed-off-by: Frédéric Pétrot
> Co-authored-by: Fabien Portas
> ---
> target/riscv/cpu.h
The upper 64-bit of the 128-bit registers have now a place inside
the cpu state structure, and are created as globals for future use.
Signed-off-by: Frédéric Pétrot
Co-authored-by: Fabien Portas
---
target/riscv/cpu.h | 2 ++
target/riscv/cpu.c | 9 +
target/riscv/machine.