]> Git Repo - qemu.git/commitdiff
tcg: Fix MAX_OPC_PARAM_IARGS
authorStefan Weil <[email protected]>
Wed, 12 Sep 2012 17:18:55 +0000 (19:18 +0200)
committerBlue Swirl <[email protected]>
Sat, 15 Sep 2012 15:34:27 +0000 (15:34 +0000)
DEF_HELPER_FLAGS_5 was added some time ago without adjusting
MAX_OPC_PARAM_IARGS.

Fixing the definition becomes more important as QEMU is using
an increasing number of helper functions called with 5 arguments.

Add also a comment to avoid future problems when DEF_HELPER_FLAGS_6
will be added.

Signed-off-by: Stefan Weil <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
def-helper.h
exec-all.h

index b98ff69e4e96594fbc27ca2042f233c079cad406..022a9ceb6a2bb56f76ba2a2e271654067980d807 100644 (file)
 #define DEF_HELPER_5(name, ret, t1, t2, t3, t4, t5) \
     DEF_HELPER_FLAGS_5(name, 0, ret, t1, t2, t3, t4, t5)
 
+/* MAX_OPC_PARAM_IARGS must be set to n if last entry is DEF_HELPER_FLAGS_n. */
+
 #endif /* DEF_HELPER_H */
 
 #ifndef GEN_HELPER
index c5ec8e11580204cb4eae26406433ad4c686ce396..4f4fafc05a7b7c97d7259eed09c623ce90fd5c7d 100644 (file)
@@ -51,7 +51,7 @@ typedef struct TranslationBlock TranslationBlock;
 #else
 #define MAX_OPC_PARAM_PER_ARG 1
 #endif
-#define MAX_OPC_PARAM_IARGS 4
+#define MAX_OPC_PARAM_IARGS 5
 #define MAX_OPC_PARAM_OARGS 1
 #define MAX_OPC_PARAM_ARGS (MAX_OPC_PARAM_IARGS + MAX_OPC_PARAM_OARGS)
 
This page took 0.027904 seconds and 4 git commands to generate.