monitor: Fix tracepoint crash on JSON syntax error
[qemu/armbru.git] / include / exec / helper-tcg.h
blobb3bdb0c39965be9ad07774cf3830b416c71395a0
1 /* Helper file for declaring TCG helper functions.
2 This one defines data structures private to tcg.c. */
4 #ifndef HELPER_TCG_H
5 #define HELPER_TCG_H
7 #include "exec/helper-head.h"
9 /* Need one more level of indirection before stringification
10 to get all the macros expanded first. */
11 #define str(s) #s
13 #define DEF_HELPER_FLAGS_0(NAME, FLAGS, ret) \
14 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
15 .sizemask = dh_sizemask(ret, 0) },
17 #define DEF_HELPER_FLAGS_1(NAME, FLAGS, ret, t1) \
18 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
19 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) },
21 #define DEF_HELPER_FLAGS_2(NAME, FLAGS, ret, t1, t2) \
22 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
23 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) \
24 | dh_sizemask(t2, 2) },
26 #define DEF_HELPER_FLAGS_3(NAME, FLAGS, ret, t1, t2, t3) \
27 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
28 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) \
29 | dh_sizemask(t2, 2) | dh_sizemask(t3, 3) },
31 #define DEF_HELPER_FLAGS_4(NAME, FLAGS, ret, t1, t2, t3, t4) \
32 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
33 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) \
34 | dh_sizemask(t2, 2) | dh_sizemask(t3, 3) | dh_sizemask(t4, 4) },
36 #define DEF_HELPER_FLAGS_5(NAME, FLAGS, ret, t1, t2, t3, t4, t5) \
37 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
38 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) \
39 | dh_sizemask(t2, 2) | dh_sizemask(t3, 3) | dh_sizemask(t4, 4) \
40 | dh_sizemask(t5, 5) },
42 #define DEF_HELPER_FLAGS_6(NAME, FLAGS, ret, t1, t2, t3, t4, t5, t6) \
43 { .func = HELPER(NAME), .name = str(NAME), .flags = FLAGS, \
44 .sizemask = dh_sizemask(ret, 0) | dh_sizemask(t1, 1) \
45 | dh_sizemask(t2, 2) | dh_sizemask(t3, 3) | dh_sizemask(t4, 4) \
46 | dh_sizemask(t5, 5) | dh_sizemask(t6, 6) },
48 #include "helper.h"
49 #include "trace/generated-helpers.h"
50 #include "tcg-runtime.h"
52 #undef str
53 #undef DEF_HELPER_FLAGS_0
54 #undef DEF_HELPER_FLAGS_1
55 #undef DEF_HELPER_FLAGS_2
56 #undef DEF_HELPER_FLAGS_3
57 #undef DEF_HELPER_FLAGS_4
58 #undef DEF_HELPER_FLAGS_5
59 #undef DEF_HELPER_FLAGS_6
61 #endif /* HELPER_TCG_H */