Re: [PATCH v1 35/36] target/riscv: Add the MSTATUS_MPV_ISSET helper macro

2020-01-08 Thread Palmer Dabbelt
On Mon, 09 Dec 2019 10:12:12 PST (-0800), 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 +++ target/riscv/cpu_helper

[PATCH v1 35/36] target/riscv: Add the MSTATUS_MPV_ISSET helper macro

2019-12-09 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 +- target/riscv/transl