target/riscv/pmp: Restrict priviledged PMP to system-mode emulation
commit0b84b6629d444ac31de33fb3125cb3e19740d766
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 23 Jul 2019 12:08:15 +0000 (23 14:08 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:42 +0000 (17 08:42 -0700)
treebbdef0e3b2b3bb92ab40ded5d19b66132781c760
parent04ece4f8205b19b31c4c6ebc481c9653c7fadd39
target/riscv/pmp: Restrict priviledged PMP to system-mode emulation

The RISC-V Physical Memory Protection is restricted to privileged
modes. Restrict its compilation to QEMU system builds.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/Makefile.objs
target/riscv/pmp.c