Re: [PATCH v1 27/28] target/riscv: Add the MSTATUS_MPV_ISSET helper macro

2019-10-16 Thread Alistair Francis
On Tue, Oct 8, 2019 at 11:36 AM Palmer Dabbelt wrote: > > On Fri, 23 Aug 2019 16:39:00 PDT (-0700), Alistair Francis wrote: > > Add a helper macro MSTATUS_MPV_ISSET() which will determine if the > > MSTATUS_MPV bit is set for both 32-bit and 64-bit RISC-V. > > > > Signed-off-by: Alistair Francis

Re: [PATCH v1 27/28] target/riscv: Add the MSTATUS_MPV_ISSET helper macro

2019-10-08 Thread Palmer Dabbelt
On Fri, 23 Aug 2019 16:39:00 PDT (-0700), Alistair Francis wrote: Add a helper macro MSTATUS_MPV_ISSET() which will determine if the MSTATUS_MPV bit is set for both 32-bit and 64-bit RISC-V. Signed-off-by: Alistair Francis --- target/riscv/cpu_bits.h | 11 +++

[Qemu-devel] [PATCH v1 27/28] target/riscv: Add the MSTATUS_MPV_ISSET helper macro

2019-08-23 Thread Alistair Francis
Add a helper macro MSTATUS_MPV_ISSET() which will determine if the MSTATUS_MPV bit is set for both 32-bit and 64-bit RISC-V. Signed-off-by: Alistair Francis --- target/riscv/cpu_bits.h | 11 +++ target/riscv/cpu_helper.c | 4 ++-- target/riscv/op_helper.c | 2 +-