qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] target/riscv: Do not include 'pmp.h' in user emulation
@ 2021-05-16 20:53 Philippe Mathieu-Daudé
  2021-05-16 20:55 ` Philippe Mathieu-Daudé
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-16 20:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, qemu-trivial, Bin Meng, Laurent Vivier,
	Philippe Mathieu-Daudé, Palmer Dabbelt, Alistair Francis

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>
---
 target/riscv/cpu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 7e879fb9ca5..0619b491a42 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -97,7 +97,9 @@ enum {
 
 typedef struct CPURISCVState CPURISCVState;
 
+#if !defined(CONFIG_USER_ONLY)
 #include "pmp.h"
+#endif
 
 #define RV_VLEN_MAX 256
 
-- 
2.26.3



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-05 19:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-16 20:53 [PATCH v2] target/riscv: Do not include 'pmp.h' in user emulation Philippe Mathieu-Daudé
2021-05-16 20:55 ` Philippe Mathieu-Daudé
2021-05-16 23:14 ` Alistair Francis
2021-05-17  1:42 ` Bin Meng
2021-05-18  6:33 ` Alistair Francis
2021-06-05 18:59 ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).