projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c8422
)
target-sh4: fix TLB invalidation code
author
Alexandre Courbot
<gnurou@gmail.com>
Tue, 25 Jan 2011 06:32:01 +0000
(15:32 +0900)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Tue, 25 Jan 2011 07:36:29 +0000
(08:36 +0100)
In cpu_sh4_invalidate_tlb, the UTLB was invalidated twice and the
ITLB left unchaged, probably because of some unfortunate copy/paste.
Signed-off-by: Alexandre Courbot <gnurou@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/helper.c
patch
|
blob
|
history
diff --git
a/target-sh4/helper.c
b/target-sh4/helper.c
index
45449ea
..
bee0527
100644
(file)
--- a/
target-sh4/helper.c
+++ b/
target-sh4/helper.c
@@
-559,8
+559,8
@@
void cpu_load_tlb(CPUSH4State * env)
entry->v = 0;
}
/* ITLB */
- for (i = 0; i <
U
TLB_SIZE; i++) {
- tlb_t * entry = &s->
u
tlb[i];
+ for (i = 0; i <
I
TLB_SIZE; i++) {
+ tlb_t * entry = &s->
i
tlb[i];
entry->v = 0;
}