Revision 86c581dc target-ppc/op.c
b/target-ppc/op.c | ||
---|---|---|
137 | 137 |
} |
138 | 138 |
|
139 | 139 |
/* Constants load */ |
140 |
void OPPROTO op_reset_T0 (void) |
|
141 |
{ |
|
142 |
T0 = 0; |
|
143 |
RETURN(); |
|
144 |
} |
|
145 |
|
|
146 |
void OPPROTO op_set_T0 (void) |
|
147 |
{ |
|
148 |
T0 = (uint32_t)PARAM1; |
|
149 |
RETURN(); |
|
150 |
} |
|
151 |
|
|
152 |
#if defined(TARGET_PPC64) |
|
153 |
void OPPROTO op_set_T0_64 (void) |
|
154 |
{ |
|
155 |
T0 = ((uint64_t)PARAM1 << 32) | (uint64_t)PARAM2; |
|
156 |
RETURN(); |
|
157 |
} |
|
158 |
#endif |
|
159 |
|
|
160 |
void OPPROTO op_set_T1 (void) |
|
161 |
{ |
|
162 |
T1 = (uint32_t)PARAM1; |
|
163 |
RETURN(); |
|
164 |
} |
|
165 |
|
|
166 |
#if defined(TARGET_PPC64) |
|
167 |
void OPPROTO op_set_T1_64 (void) |
|
168 |
{ |
|
169 |
T1 = ((uint64_t)PARAM1 << 32) | (uint64_t)PARAM2; |
|
170 |
RETURN(); |
|
171 |
} |
|
172 |
#endif |
|
173 |
|
|
174 |
#if 0 // unused |
|
175 |
void OPPROTO op_set_T2 (void) |
|
176 |
{ |
|
177 |
T2 = (uint32_t)PARAM1; |
|
178 |
RETURN(); |
|
179 |
} |
|
180 |
#endif |
|
181 |
|
|
182 | 140 |
void OPPROTO op_moven_T2_T0 (void) |
183 | 141 |
{ |
184 | 142 |
T2 = ~T0; |
Also available in: Unified diff