summaryrefslogtreecommitdiffstats
path: root/include/tcg
diff options
context:
space:
mode:
authorZiqiao Kong2022-02-27 12:31:30 +0100
committerRichard Henderson2022-03-04 19:50:41 +0100
commit0166feda3257b5987be62566ad1f421c6527ba67 (patch)
treeaaedb7d235331bb8269607ba3a634094f32a7881 /include/tcg
parenttcg/optimize: only read val after const check (diff)
downloadqemu-0166feda3257b5987be62566ad1f421c6527ba67.tar.gz
qemu-0166feda3257b5987be62566ad1f421c6527ba67.tar.xz
qemu-0166feda3257b5987be62566ad1f421c6527ba67.zip
tcg: Set MAX_OPC_PARAM_IARGS to 7
The last entry of DEF_HELPERS_FLAGS_n is DEF_HELPER_FLAGS_7 and thus the MAX_OPC_PARAM_IARGS should be 7. Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Ziqiao Kong <ziqiaokong@gmail.com> Message-Id: <20220227113127.414533-2-ziqiaokong@gmail.com> Fixes: e6cadf49c3d ("tcg: Add support for a helper with 7 arguments") Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r--include/tcg/tcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 42f5b500ed..939041103e 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -43,7 +43,7 @@
#else
#define MAX_OPC_PARAM_PER_ARG 1
#endif
-#define MAX_OPC_PARAM_IARGS 6
+#define MAX_OPC_PARAM_IARGS 7
#define MAX_OPC_PARAM_OARGS 1
#define MAX_OPC_PARAM_ARGS (MAX_OPC_PARAM_IARGS + MAX_OPC_PARAM_OARGS)