aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-03-14 08:49:49 -1000
committerRichard Henderson <richard.henderson@linaro.org>2024-04-30 16:12:05 -0700
commited30e7b1d9f5639d346fc2f0285568516e324398 (patch)
tree584e1f603b821d4a423745188282890309a2a7f0
parent9c6c079bc6723da8061ccfb44361d67b1dd785dd (diff)
downloadqemu-ed30e7b1d9f5639d346fc2f0285568516e324398.zip
qemu-ed30e7b1d9f5639d346fc2f0285568516e324398.tar.gz
qemu-ed30e7b1d9f5639d346fc2f0285568516e324398.tar.bz2
tcg: Make tcg/helper-info.h self-contained
Move MAX_CALL_IARGS from tcg.h and include for the define of TCG_TARGET_REG_BITS. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--include/tcg/helper-info.h3
-rw-r--r--include/tcg/tcg.h2
-rw-r--r--tcg/tci.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/include/tcg/helper-info.h b/include/tcg/helper-info.h
index 7c27d61..909fe73 100644
--- a/include/tcg/helper-info.h
+++ b/include/tcg/helper-info.h
@@ -12,6 +12,9 @@
#ifdef CONFIG_TCG_INTERPRETER
#include <ffi.h>
#endif
+#include "tcg-target-reg-bits.h"
+
+#define MAX_CALL_IARGS 7
/*
* Describe the calling convention of a given argument type.
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 05a1912..e4c5984 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -39,8 +39,6 @@
/* XXX: make safe guess about sizes */
#define MAX_OP_PER_INSTR 266
-#define MAX_CALL_IARGS 7
-
#define CPU_TEMP_BUF_NLONGS 128
#define TCG_STATIC_FRAME_SIZE (CPU_TEMP_BUF_NLONGS * sizeof(long))
diff --git a/tcg/tci.c b/tcg/tci.c
index 39adcb7..3afb223 100644
--- a/tcg/tci.c
+++ b/tcg/tci.c
@@ -19,6 +19,7 @@
#include "qemu/osdep.h"
#include "tcg/tcg.h"
+#include "tcg/helper-info.h"
#include "tcg/tcg-ldst.h"
#include <ffi.h>