diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-03 06:14:43 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-03 06:14:43 +0000 |
commit | 9c6cf13ced1cca3b8181b73e1b764f85a479aa44 (patch) | |
tree | 904a0b63602f4f5a1f937c7148917132e81b5685 /target-sh4 | |
parent | 2d3bdbaa35ea9380980736378858693d51222fdc (diff) | |
download | qemu-9c6cf13ced1cca3b8181b73e1b764f85a479aa44.tar.gz qemu-9c6cf13ced1cca3b8181b73e1b764f85a479aa44.tar.bz2 qemu-9c6cf13ced1cca3b8181b73e1b764f85a479aa44.zip |
SH4: Fixed last UTLB unused
Version 2 of the patch.
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6672 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/helper.c b/target-sh4/helper.c index f158b1f01d..6df6bde5a6 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -304,7 +304,7 @@ static void increment_urc(CPUState * env) urb = ((env->mmucr) >> 18) & 0x3f; urc = ((env->mmucr) >> 10) & 0x3f; urc++; - if (urc == urb || urc == UTLB_SIZE) + if (urc > urb || urc > (UTLB_SIZE - 1)) urc = 0; env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10); } |