Don't print any message when a priviledge exception occurs on mfpvr

as the Linux allows applications to read this register.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3510 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
j_mayer 2007-11-02 22:47:50 +00:00
parent 5b52b9911f
commit 9fceefa7d1

View File

@ -3550,11 +3550,17 @@ static always_inline void gen_op_mfspr (DisasContext *ctx)
gen_op_store_T0_gpr(rD(ctx->opcode)); gen_op_store_T0_gpr(rD(ctx->opcode));
} else { } else {
/* Privilege exception */ /* Privilege exception */
if (loglevel != 0) { /* This is a hack to avoid warnings when running Linux:
fprintf(logfile, "Trying to read privileged spr %d %03x\n", * this OS breaks the PowerPC virtualisation model,
sprn, sprn); * allowing userland application to read the PVR
*/
if (sprn != SPR_PVR) {
if (loglevel != 0) {
fprintf(logfile, "Trying to read privileged spr %d %03x\n",
sprn, sprn);
}
printf("Trying to read privileged spr %d %03x\n", sprn, sprn);
} }
printf("Trying to read privileged spr %d %03x\n", sprn, sprn);
GEN_EXCP_PRIVREG(ctx); GEN_EXCP_PRIVREG(ctx);
} }
} else { } else {