tcg: Make tcg/helper-info.h self-contained
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2024 18:49:49 +0000 (08:49 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 30 Apr 2024 23:12:05 +0000 (16:12 -0700)
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>
include/tcg/helper-info.h
include/tcg/tcg.h
tcg/tci.c

index 7c27d6164a4d8d9f3b2a72fb0b0d4ef90d76ef9a..909fe73afa359ab7aefed89698ade3edf49a6948 100644 (file)
@@ -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.
index 05a1912f8a32c00d7e58b8513d4a30b98f619ebb..e4c598428d58cad542fa89eb4bd55dae60b79b85 100644 (file)
@@ -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))
 
index 39adcb7d82e3e0511f6c2d67b6dfe2990eae0e08..3afb2235285a0db910bcd7687fbb3633d00f52cb 100644 (file)
--- 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>