target/openrisc: Replace cpu register array with a function
[qemu/ar7.git] / include / exec / helper-proto.h
blob74943edb13a0443be303805bfca1cbc0aa6e1803
1 /* Helper file for declaring TCG helper functions.
2 This one expands prototypes for the helper functions. */
4 #ifndef HELPER_PROTO_H
5 #define HELPER_PROTO_H
7 #include "exec/helper-head.h"
9 #define DEF_HELPER_FLAGS_0(name, flags, ret) \
10 dh_ctype(ret) HELPER(name) (void);
12 #define DEF_HELPER_FLAGS_1(name, flags, ret, t1) \
13 dh_ctype(ret) HELPER(name) (dh_ctype(t1));
15 #define DEF_HELPER_FLAGS_2(name, flags, ret, t1, t2) \
16 dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2));
18 #define DEF_HELPER_FLAGS_3(name, flags, ret, t1, t2, t3) \
19 dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2), dh_ctype(t3));
21 #define DEF_HELPER_FLAGS_4(name, flags, ret, t1, t2, t3, t4) \
22 dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2), dh_ctype(t3), \
23 dh_ctype(t4));
25 #define DEF_HELPER_FLAGS_5(name, flags, ret, t1, t2, t3, t4, t5) \
26 dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2), dh_ctype(t3), \
27 dh_ctype(t4), dh_ctype(t5));
29 #define DEF_HELPER_FLAGS_6(name, flags, ret, t1, t2, t3, t4, t5, t6) \
30 dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2), dh_ctype(t3), \
31 dh_ctype(t4), dh_ctype(t5), dh_ctype(t6));
33 #include "helper.h"
34 #include "trace/generated-helpers.h"
35 #include "tcg-runtime.h"
37 #undef DEF_HELPER_FLAGS_0
38 #undef DEF_HELPER_FLAGS_1
39 #undef DEF_HELPER_FLAGS_2
40 #undef DEF_HELPER_FLAGS_3
41 #undef DEF_HELPER_FLAGS_4
42 #undef DEF_HELPER_FLAGS_5
43 #undef DEF_HELPER_FLAGS_6
45 #endif /* HELPER_PROTO_H */