Revision 6f2d8978 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
404 | 404 |
|
405 | 405 |
#if defined(TARGET_PPC64) |
406 | 406 |
if (likely(start == 0)) { |
407 |
ret = (uint64_t)(-1ULL) << (63 - end);
|
|
407 |
ret = UINT64_MAX << (63 - end);
|
|
408 | 408 |
} else if (likely(end == 63)) { |
409 |
ret = (uint64_t)(-1ULL) >> start;
|
|
409 |
ret = UINT64_MAX >> start;
|
|
410 | 410 |
} |
411 | 411 |
#else |
412 | 412 |
if (likely(start == 0)) { |
413 |
ret = (uint32_t)(-1ULL) << (31 - end);
|
|
413 |
ret = UINT32_MAX << (31 - end);
|
|
414 | 414 |
} else if (likely(end == 31)) { |
415 |
ret = (uint32_t)(-1ULL) >> start;
|
|
415 |
ret = UINT32_MAX >> start;
|
|
416 | 416 |
} |
417 | 417 |
#endif |
418 | 418 |
else { |
... | ... | |
3517 | 3517 |
} |
3518 | 3518 |
|
3519 | 3519 |
#if 1 |
3520 |
#define SPR_NOACCESS ((void *)(-1)) |
|
3520 |
#define SPR_NOACCESS ((void *)(-1UL))
|
|
3521 | 3521 |
#else |
3522 | 3522 |
static void spr_noaccess (void *opaque, int sprn) |
3523 | 3523 |
{ |
Also available in: Unified diff