Revision 799a8c8d target-ppc/op.c
b/target-ppc/op.c | ||
---|---|---|
273 | 273 |
#include "op_mem.h" |
274 | 274 |
#endif |
275 | 275 |
|
276 |
/* Special op to check and maybe clear reservation */ |
|
277 |
void OPPROTO op_check_reservation (void) |
|
278 |
{ |
|
279 |
if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003)) |
|
280 |
env->reserve = (target_ulong)-1ULL; |
|
281 |
RETURN(); |
|
282 |
} |
|
283 |
|
|
284 |
#if defined(TARGET_PPC64) |
|
285 |
void OPPROTO op_check_reservation_64 (void) |
|
286 |
{ |
|
287 |
if ((uint64_t)env->reserve == (uint64_t)(T0 & ~0x00000003)) |
|
288 |
env->reserve = (target_ulong)-1ULL; |
|
289 |
RETURN(); |
|
290 |
} |
|
291 |
#endif |
|
292 |
|
|
293 | 276 |
/* Return from interrupt */ |
294 | 277 |
#if !defined(CONFIG_USER_ONLY) |
295 | 278 |
void OPPROTO op_rfi (void) |
Also available in: Unified diff