Revision 7b13448f
b/target-ppc/translate.c | ||
---|---|---|
3719 | 3719 |
#endif |
3720 | 3720 |
} |
3721 | 3721 |
|
3722 |
#if 1 |
|
3723 |
#define SPR_NOACCESS ((void *)(-1UL)) |
|
3724 |
#else |
|
3725 |
static void spr_noaccess (void *opaque, int sprn) |
|
3722 |
static void spr_noaccess(void *opaque, int gprn, int sprn) |
|
3726 | 3723 |
{ |
3724 |
#if 0 |
|
3727 | 3725 |
sprn = ((sprn >> 5) & 0x1F) | ((sprn & 0x1F) << 5); |
3728 | 3726 |
printf("ERROR: try to access SPR %d !\n", sprn); |
3727 |
#endif |
|
3729 | 3728 |
} |
3730 | 3729 |
#define SPR_NOACCESS (&spr_noaccess) |
3731 |
#endif |
|
3732 | 3730 |
|
3733 | 3731 |
/* mfspr */ |
3734 | 3732 |
static inline void gen_op_mfspr(DisasContext *ctx) |
Also available in: Unified diff