Commit 59b1a90b authored by Edgar E. Iglesias's avatar Edgar E. Iglesias
Browse files

target-microblaze: Respect MSR.PVR as read-only



Respect MSR.PVR as read-only. We were wrongly overwriting the PVR bit.

Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
parent 6f0c4706
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}