diff options
author | Alexandre Courbot <gnurou@gmail.com> | 2011-01-25 15:32:01 +0900 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-25 08:36:29 +0100 |
commit | e40a67beeda6aa6e735546e9f08f3db41e23592a (patch) | |
tree | 28191591ea38c86935e0f4351d4500bdb037ea1c /target-sh4/helper.c | |
parent | b22b7b729d2d617c49381843362bc3ef336d66ec (diff) | |
download | qemu-e40a67beeda6aa6e735546e9f08f3db41e23592a.tar.gz qemu-e40a67beeda6aa6e735546e9f08f3db41e23592a.tar.bz2 qemu-e40a67beeda6aa6e735546e9f08f3db41e23592a.zip |
target-sh4: fix TLB invalidation code
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>
Diffstat (limited to 'target-sh4/helper.c')
-rw-r--r-- | target-sh4/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 45449ea64e..bee05274fd 100644 --- 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 < UTLB_SIZE; i++) { - tlb_t * entry = &s->utlb[i]; + for (i = 0; i < ITLB_SIZE; i++) { + tlb_t * entry = &s->itlb[i]; entry->v = 0; } |