]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
user: Move 'thunk.h' from 'exec/user' to 'user'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 22 Mar 2024 10:08:12 +0000 (11:08 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 3 May 2024 15:21:20 +0000 (17:21 +0200)
Keep all user emulation headers under the same user/ directory.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240428221450.26460-2-philmd@linaro.org>

MAINTAINERS
bsd-user/qemu.h
include/user/thunk.h [moved from include/exec/user/thunk.h with 97% similarity]
linux-user/thunk.c
linux-user/user-internals.h

index 302b6fd00c4da11e40088521198c936319b2ce9a..96411e6adf78b09d54131cece6c8bc7af853b8e1 100644 (file)
@@ -3692,7 +3692,6 @@ Overall usermode emulation
 M: Riku Voipio <riku.voipio@iki.fi>
 S: Maintained
 F: accel/tcg/user-exec*.c
-F: include/exec/user/
 F: include/user/
 F: common-user/
 
index a0c1ad7efaf9d01e285f3cc0f9ea521d0f88329a..a916724de995c9e5ecac88c6afb753552e42b08f 100644 (file)
@@ -26,7 +26,7 @@
 
 extern char **environ;
 
-#include "exec/user/thunk.h"
+#include "user/thunk.h"
 #include "target_arch.h"
 #include "syscall_defs.h"
 #include "target_syscall.h"
similarity index 97%
rename from include/exec/user/thunk.h
rename to include/user/thunk.h
index 9f35c888f9277c19de0f13a51b000d7e47cd29b1..2a2104b568fd18a9c811fd358eacd98455231740 100644 (file)
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef THUNK_H
-#define THUNK_H
+#ifndef USER_THUNK_H
+#define USER_THUNK_H
+
+#ifndef CONFIG_USER_ONLY
+#error Cannot include this header from system emulation
+#endif
 
 #include "cpu.h"
 #include "user/abitypes.h"
index 071aad4b5fc1d3c008baa7097c83de85f3d5ebe5..3cd19e79c6c795ceb84540761f2fe2142a59c934 100644 (file)
@@ -20,7 +20,7 @@
 #include "qemu/log.h"
 
 #include "qemu.h"
-#include "exec/user/thunk.h"
+#include "user/thunk.h"
 
 //#define DEBUG
 
index ce11d9e21c1c389e7a6158ccade648b5d303e555..5c7f173ceb437562722d93f441521ed00b001d19 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef LINUX_USER_USER_INTERNALS_H
 #define LINUX_USER_USER_INTERNALS_H
 
-#include "exec/user/thunk.h"
+#include "user/thunk.h"
 #include "exec/exec-all.h"
 #include "exec/tb-flush.h"
 #include "qemu/log.h"