Revision f10dc08e
b/target-ppc/helper.h | ||
---|---|---|
1 |
#ifndef DEF_HELPER |
|
2 |
#define DEF_HELPER(ret, name, params) ret name params; |
|
3 |
#endif |
|
4 |
|
b/target-ppc/translate.c | ||
---|---|---|
26 | 26 |
#include "cpu.h" |
27 | 27 |
#include "exec-all.h" |
28 | 28 |
#include "disas.h" |
29 |
#include "helper.h" |
|
29 | 30 |
#include "tcg-op.h" |
30 | 31 |
#include "qemu-common.h" |
31 | 32 |
|
... | ... | |
65 | 66 |
cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1"); |
66 | 67 |
cpu_T[2] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG3, "T2"); |
67 | 68 |
#endif |
69 |
|
|
70 |
/* register helpers */ |
|
71 |
#undef DEF_HELPER |
|
72 |
#define DEF_HELPER(ret, name, params) tcg_register_helper(name, #name); |
|
73 |
#include "helper.h" |
|
74 |
|
|
68 | 75 |
done_init = 1; |
69 | 76 |
} |
70 | 77 |
|
Also available in: Unified diff