summaryrefslogtreecommitdiff
path: root/def-helper.h
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-09-12 19:18:55 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-09-15 15:34:27 +0000
commit3cebc3f11d8d74eb87dc02e712629c45e689960b (patch)
tree22a57c776acc54e6524ac32b471c0f04956a671a /def-helper.h
parente0a1e32dbc41e6b2aabb436a9417dfd32177a3dc (diff)
downloadqemu-3cebc3f11d8d74eb87dc02e712629c45e689960b.tar.gz
qemu-3cebc3f11d8d74eb87dc02e712629c45e689960b.tar.bz2
qemu-3cebc3f11d8d74eb87dc02e712629c45e689960b.zip
tcg: Fix MAX_OPC_PARAM_IARGS
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 <sw@weilnetz.de> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'def-helper.h')
-rw-r--r--def-helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/def-helper.h b/def-helper.h
index b98ff69e4e..022a9ceb6a 100644
--- a/def-helper.h
+++ b/def-helper.h
@@ -128,6 +128,8 @@
#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