On Tue, Nov 3, 2020 at 12:20 PM Richard Henderson
wrote:
>
> On 11/3/20 11:50 AM, Alistair Francis wrote:
> > @@ -30,6 +30,10 @@ int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch)
> > #ifdef CONFIG_USER_ONLY
> > return 0;
> > #else
> > +if (riscv_cpu_virt_enabled(env)) {
> > +
On 11/3/20 11:50 AM, Alistair Francis wrote:
> @@ -30,6 +30,10 @@ int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch)
> #ifdef CONFIG_USER_ONLY
> return 0;
> #else
> +if (riscv_cpu_virt_enabled(env)) {
> +return env->priv | TB_FLAGS_PRIV_HYP_ACCESS_MASK;
> +}
Still sett