From: Edgar E. Iglesias Date: Sat, 14 Apr 2018 16:06:34 +0000 (+0200) Subject: target-microblaze: Respect MSR.PVR as read-only X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=59b1a90b0b5dc6b368364e9e1d40184eb4506c39;p=people%2Fpauldu%2Fqemu.git target-microblaze: Respect MSR.PVR as read-only Respect MSR.PVR as read-only. We were wrongly overwriting the PVR bit. Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 7628b0e25b..f739751930 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -424,7 +424,7 @@ static inline void msr_write(DisasContext *dc, TCGv v) /* PVR bit is not writable. */ tcg_gen_andi_tl(t, v, ~MSR_PVR); tcg_gen_andi_tl(cpu_SR[SR_MSR], cpu_SR[SR_MSR], MSR_PVR); - tcg_gen_or_tl(cpu_SR[SR_MSR], cpu_SR[SR_MSR], v); + tcg_gen_or_tl(cpu_SR[SR_MSR], cpu_SR[SR_MSR], t); tcg_temp_free(t); }