OSDN Git Service

target/riscv: Add the MSTATUS_MPV_ISSET helper macro
authorAlistair Francis <alistair.francis@wdc.com>
Sat, 1 Feb 2020 01:03:08 +0000 (17:03 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 27 Feb 2020 21:46:33 +0000 (13:46 -0800)
commite44b50b5b2e508fdd24915ab0e44ac49685e1de3
treee0a6d6fa3b43bbab5534860e590114d95e90f0b6
parent551fa7e8a695ea5fd1cca8ffd318556855bbf54f
target/riscv: Add the MSTATUS_MPV_ISSET helper macro

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 <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
target/riscv/cpu_bits.h
target/riscv/cpu_helper.c
target/riscv/op_helper.c
target/riscv/translate.c