target/riscv: Do not include 'pmp.h' in user emulation
Physical Memory Protection is a system feature. Avoid polluting the user-mode emulation by its definitions. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-id: 20210516205333.696094-1-f4bug@amsat.org Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
6debd840c8
commit
bbf3d1b48f
@ -97,7 +97,9 @@ enum {
|
||||
|
||||
typedef struct CPURISCVState CPURISCVState;
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
#include "pmp.h"
|
||||
#endif
|
||||
|
||||
#define RV_VLEN_MAX 256
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user