aboutsummaryrefslogtreecommitdiffstats
path: root/translate-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/translate-all.c b/translate-all.c
index 0bab63f..ed174e7 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -72,9 +72,11 @@ unsigned long code_gen_max_block_size(void)
if (max == 0) {
max = TCG_MAX_OP_SIZE;
-#define DEF(s, n, copy_size) max = copy_size > max? copy_size : max;
+#define DEF(name, iarg, oarg, carg, flags) DEF2((iarg) + (oarg) + (carg))
+#define DEF2(copy_size) max = (copy_size > max) ? copy_size : max;
#include "tcg-opc.h"
#undef DEF
+#undef DEF2
max *= OPC_MAX_SIZE;
}