mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
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 <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
6f0c4706b3
commit
59b1a90b0b
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ static inline void msr_write(DisasContext *dc, TCGv v)
|
||||||
/* PVR bit is not writable. */
|
/* PVR bit is not writable. */
|
||||||
tcg_gen_andi_tl(t, v, ~MSR_PVR);
|
tcg_gen_andi_tl(t, v, ~MSR_PVR);
|
||||||
tcg_gen_andi_tl(cpu_SR[SR_MSR], cpu_SR[SR_MSR], 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);
|
tcg_temp_free(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue