OSDN Git Service

RISC-V: Add support for the Zicsr extension
authorPalmer Dabbelt <palmer@sifive.com>
Mon, 24 Jun 2019 08:59:51 +0000 (01:59 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Wed, 26 Jun 2019 05:32:42 +0000 (22:32 -0700)
commit591bddea8d874e1500921de0353818e5586618f5
tree89a3ca7210f98e3cdf6bd85ac83c228c87b28262
parent50fba816cd226001bec3e495c39879deb2fa5432
RISC-V: Add support for the Zicsr extension

The various CSR instructions have been split out of the base ISA as part
of the ratification process.  This patch adds a Zicsr argument, which
disables all the CSR instructions.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/csr.c