Revision 9fceefa7 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
3550 | 3550 |
gen_op_store_T0_gpr(rD(ctx->opcode)); |
3551 | 3551 |
} else { |
3552 | 3552 |
/* Privilege exception */ |
3553 |
if (loglevel != 0) { |
|
3554 |
fprintf(logfile, "Trying to read privileged spr %d %03x\n", |
|
3555 |
sprn, sprn); |
|
3553 |
/* This is a hack to avoid warnings when running Linux: |
|
3554 |
* this OS breaks the PowerPC virtualisation model, |
|
3555 |
* allowing userland application to read the PVR |
|
3556 |
*/ |
|
3557 |
if (sprn != SPR_PVR) { |
|
3558 |
if (loglevel != 0) { |
|
3559 |
fprintf(logfile, "Trying to read privileged spr %d %03x\n", |
|
3560 |
sprn, sprn); |
|
3561 |
} |
|
3562 |
printf("Trying to read privileged spr %d %03x\n", sprn, sprn); |
|
3556 | 3563 |
} |
3557 |
printf("Trying to read privileged spr %d %03x\n", sprn, sprn); |
|
3558 | 3564 |
GEN_EXCP_PRIVREG(ctx); |
3559 | 3565 |
} |
3560 | 3566 |
} else { |
Also available in: Unified diff