On Wed, Dec 9, 2020 at 7:59 AM Richard Henderson <richard.hender...@linaro.org> wrote: > > On 12/8/20 4:56 PM, Alistair Francis wrote: > > +bool riscv_cpu_is_32bit(CPURISCVState *env) > > +{ > > + if (env->misa & RV64) { > > + return false; > > + } > > + > > + return true; > > Is this ever going to more than > > return !(env->misa & RV64);
Eventually this could also depend on mstatus, to allow a 32-bit kernel to run on a 64-bit firmware. It will also hopefully one day be configurable by hypervisors. Alistair > > ? > > > r~