projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd9e660
)
target-microblaze: mmu: Make the TLBX MISS bit read-only
author
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Sun, 15 Apr 2018 21:21:06 +0000
(23:21 +0200)
committer
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Mon, 30 Apr 2018 14:43:20 +0000
(16:43 +0200)
Make the TLBX MISS bit read-only.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/microblaze/mmu.c
patch
|
blob
|
history
diff --git
a/target/microblaze/mmu.c
b/target/microblaze/mmu.c
index 839181190030129995eb9aa336c9c7819dfd350d..9d5e6aa8a535ac6d348230fee060665db5a0f229 100644
(file)
--- a/
target/microblaze/mmu.c
+++ b/
target/microblaze/mmu.c
@@
-273,6
+273,10
@@
void mmu_write(CPUMBState *env, uint32_t rn, uint32_t v)
env->mmu.regs[rn] = v;
}
break;
+ case MMU_R_TLBX:
+ /* Bit 31 is read-only. */
+ env->mmu.regs[rn] = deposit32(env->mmu.regs[rn], 0, 31, v);
+ break;
case MMU_R_TLBSX:
{
struct microblaze_mmu_lookup lu;