[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
[PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation |
|
Date: |
Sat, 27 Apr 2024 17:57:10 +0200 |
System emulation shouldn't use "user/syscall-trace.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/user/syscall-trace.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/user/syscall-trace.h b/include/user/syscall-trace.h
index b48b2b2d0a..6926434d9a 100644
--- a/include/user/syscall-trace.h
+++ b/include/user/syscall-trace.h
@@ -10,6 +10,10 @@
#ifndef SYSCALL_TRACE_H
#define SYSCALL_TRACE_H
+#ifndef CONFIG_USER_ONLY
+#error Cannot include this header from system emulation
+#endif
+
#include "exec/user/abitypes.h"
#include "gdbstub/user.h"
#include "qemu/plugin.h"
--
2.41.0
- Re: [PATCH 06/14] exec/cpu: Remove obsolete PAGE_RESERVED definition, (continued)
- [PATCH 07/14] exec/cpu: Remove duplicated PAGE_PASSTHROUGH definition, Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 08/14] exec/cpu: Extract page-protection definitions to page-prot-common.h, Philippe Mathieu-Daudé, 2024/04/27
- [RFC PATCH 09/14] exec/cpu: Restrict user-specific page definitions, Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 11/14] accel/tcg: Use cpu_loop_exit_requested() in cpu_loop_exec_tb(), Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation,
Philippe Mathieu-Daudé <=
- [PATCH 12/14] accel/tcg: Remove pointless initialization of cflags_next_tb, Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 13/14] accel/tcg: Reset TCG specific fields in tcg_cpu_reset_hold(), Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 14/14] accel/tcg: Access tcg_cflags with getter / setter, Philippe Mathieu-Daudé, 2024/04/27