* [Qemu-devel] [PATCH] target-xtensa: fix MMUv3 initialization
@ 2011-11-22 7:59 Max Filippov
2011-11-26 9:51 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2011-11-22 7:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov
- ITLB/DTLB ways 5 and 6 have 4 and 8 entries respectively;
- ITLB/DTLB way 6 attr field is set to 3 on reset.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
target-xtensa/helper.c | 2 +-
target-xtensa/overlay_tool.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c
index fc85815..2a0cb1a 100644
--- a/target-xtensa/helper.c
+++ b/target-xtensa/helper.c
@@ -273,7 +273,7 @@ static void reset_tlb_mmu_ways56(CPUState *env,
entry[6][ei].vaddr = ei << 29;
entry[6][ei].paddr = ei << 29;
entry[6][ei].asid = 1;
- entry[6][ei].attr = 2;
+ entry[6][ei].attr = 3;
}
}
}
diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h
index 9cef27d..df19cc9 100644
--- a/target-xtensa/overlay_tool.h
+++ b/target-xtensa/overlay_tool.h
@@ -256,7 +256,7 @@
.way_size = { \
(refill_way_size), (refill_way_size), \
(refill_way_size), (refill_way_size), \
- 4, 2, 2, 1, 1, 1, \
+ 4, (way56) ? 4 : 2, (way56) ? 8 : 2, 1, 1, 1, \
}, \
.varway56 = (way56), \
.nrefillentries = (refill_way_size) * 4, \
--
1.7.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] target-xtensa: fix MMUv3 initialization
2011-11-22 7:59 [Qemu-devel] [PATCH] target-xtensa: fix MMUv3 initialization Max Filippov
@ 2011-11-26 9:51 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2011-11-26 9:51 UTC (permalink / raw)
To: Max Filippov; +Cc: qemu-devel
Thanks, applied.
On Tue, Nov 22, 2011 at 07:59, Max Filippov <jcmvbkbc@gmail.com> wrote:
> - ITLB/DTLB ways 5 and 6 have 4 and 8 entries respectively;
> - ITLB/DTLB way 6 attr field is set to 3 on reset.
>
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
> target-xtensa/helper.c | 2 +-
> target-xtensa/overlay_tool.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c
> index fc85815..2a0cb1a 100644
> --- a/target-xtensa/helper.c
> +++ b/target-xtensa/helper.c
> @@ -273,7 +273,7 @@ static void reset_tlb_mmu_ways56(CPUState *env,
> entry[6][ei].vaddr = ei << 29;
> entry[6][ei].paddr = ei << 29;
> entry[6][ei].asid = 1;
> - entry[6][ei].attr = 2;
> + entry[6][ei].attr = 3;
> }
> }
> }
> diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h
> index 9cef27d..df19cc9 100644
> --- a/target-xtensa/overlay_tool.h
> +++ b/target-xtensa/overlay_tool.h
> @@ -256,7 +256,7 @@
> .way_size = { \
> (refill_way_size), (refill_way_size), \
> (refill_way_size), (refill_way_size), \
> - 4, 2, 2, 1, 1, 1, \
> + 4, (way56) ? 4 : 2, (way56) ? 8 : 2, 1, 1, 1, \
> }, \
> .varway56 = (way56), \
> .nrefillentries = (refill_way_size) * 4, \
> --
> 1.7.6.4
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-26 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 7:59 [Qemu-devel] [PATCH] target-xtensa: fix MMUv3 initialization Max Filippov
2011-11-26 9:51 ` Blue Swirl
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).