aboutsummaryrefslogtreecommitdiff
path: root/include/exec/helper-proto-common.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-03-31 20:13:36 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-06-05 12:04:29 -0700
commitc213ee2dfc7365c0c8544fa25672d891fdffe343 (patch)
tree5e29a9ec7ea7907189c14f4ec6e3ad54c643875b /include/exec/helper-proto-common.h
parente4eff8e4edc188b5eee8834479b515325889e27a (diff)
downloadqemu-c213ee2dfc7365c0c8544fa25672d891fdffe343.zip
qemu-c213ee2dfc7365c0c8544fa25672d891fdffe343.tar.gz
qemu-c213ee2dfc7365c0c8544fa25672d891fdffe343.tar.bz2
tcg: Split helper-proto.h
Create helper-proto-common.h without the target specific portion. Use that in tcg-op-common.h. Include helper-proto.h in target/arm and target/hexagon before helper-info.c.inc; all other targets are already correct in this regard. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/helper-proto-common.h')
-rw-r--r--include/exec/helper-proto-common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/exec/helper-proto-common.h b/include/exec/helper-proto-common.h
new file mode 100644
index 0000000..4d4b022
--- /dev/null
+++ b/include/exec/helper-proto-common.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Helper file for declaring TCG helper functions.
+ * This one expands prototypes for the helper functions.
+ */
+
+#ifndef HELPER_PROTO_COMMON_H
+#define HELPER_PROTO_COMMON_H
+
+#define HELPER_H "accel/tcg/tcg-runtime.h"
+#include "exec/helper-proto.h.inc"
+#undef HELPER_H
+
+#define HELPER_H "accel/tcg/plugin-helpers.h"
+#include "exec/helper-proto.h.inc"
+#undef HELPER_H
+
+#endif /* HELPER_PROTO_COMMON_H */