Revision aaa9128a target-mips/op_template.c
b/target-mips/op_template.c | ||
---|---|---|
56 | 56 |
FORCE_RET(); |
57 | 57 |
} |
58 | 58 |
#endif |
59 |
|
|
60 |
#if defined (TN) |
|
61 |
#define SET_RESET(treg, tregname) \ |
|
62 |
void glue(op_set, tregname)(void) \ |
|
63 |
{ \ |
|
64 |
treg = (int32_t)PARAM1; \ |
|
65 |
FORCE_RET(); \ |
|
66 |
} \ |
|
67 |
void glue(op_reset, tregname)(void) \ |
|
68 |
{ \ |
|
69 |
treg = 0; \ |
|
70 |
FORCE_RET(); \ |
|
71 |
} \ |
|
72 |
|
|
73 |
SET_RESET(T0, _T0) |
|
74 |
SET_RESET(T1, _T1) |
|
75 |
|
|
76 |
#undef SET_RESET |
|
77 |
|
|
78 |
#if defined(TARGET_MIPS64) |
|
79 |
#define SET64(treg, tregname) \ |
|
80 |
void glue(op_set64, tregname)(void) \ |
|
81 |
{ \ |
|
82 |
treg = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2; \ |
|
83 |
FORCE_RET(); \ |
|
84 |
} |
|
85 |
|
|
86 |
SET64(T0, _T0) |
|
87 |
SET64(T1, _T1) |
|
88 |
|
|
89 |
#undef SET64 |
|
90 |
|
|
91 |
#endif |
|
92 |
#endif |
Also available in: Unified diff