* [Qemu-devel] [ARM] mmu table base address 0 not necessarily 16k-aligned
@ 2008-05-17 9:53 Junjie Cai
0 siblings, 0 replies; only message in thread
From: Junjie Cai @ 2008-05-17 9:53 UTC (permalink / raw)
To: qemu-devel
Dear List,
I found that in target-arm/helper.c
get_phys_addr_v6() always align the
mmu table base address to 16K.
But it is not true if c2_mask is set.
I tried to make a patch below, please consider.
Index: qemu-0.9.1/target-arm/helper.c
===================================================================
--- qemu-0.9.1.orig/target-arm/helper.c 2008-05-17 18:24:38.000000000
+0900
+++ qemu-0.9.1/target-arm/helper.c 2008-05-17 18:45:12.000000000 +0900
@@ -912,7 +912,7 @@
table = env->cp15.c2_base1;
else
table = env->cp15.c2_base0;
- table = (table & 0xffffc000) | ((address >> 18) & 0x3ffc);
+ table = (table & 0xffffffe0) | ((address >> 18) & 0x3ffc);
desc = ldl_phys(table);
type = (desc & 3);
if (type == 0) {
Thanks.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-17 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 9:53 [Qemu-devel] [ARM] mmu table base address 0 not necessarily 16k-aligned Junjie Cai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).