This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 86190e3414b9793843d777594dd4754f43278d95 (commit)
from 4de3b94311fcff91f860c62cf565dd56dece209f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 86190e3414b9793843d777594dd4754f43278d95
Author: Paul Cercueil <pa...@cr...>
Date: Sat Jul 6 18:20:34 2024 +0200
cache: Fix ranges of i/d cache flush/inval (#664)
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/kernel/cache.s | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/kernel/arch/dreamcast/kernel/cache.s b/kernel/arch/dreamcast/kernel/cache.s
index 484148a2..c3d2b6de 100644
--- a/kernel/arch/dreamcast/kernel/cache.s
+++ b/kernel/arch/dreamcast/kernel/cache.s
@@ -66,7 +66,7 @@ _icache_flush_range:
and r3, r7
add #32, r4 ! Move on to next cache block
- cmp/hs r4, r5
+ cmp/hi r4, r5
bt/s .iflush_loop
mov.l r7, @r6 ! *addr = data
@@ -107,9 +107,9 @@ _dcache_inval_range:
.dinval_loop:
! Invalidate the dcache
ocbi @r4
- cmp/hs r4, r5
- bt/s .dinval_loop
add #32, r4 ! Move on to next cache block
+ cmp/hi r4, r5
+ bt .dinval_loop
.dinval_exit:
rts
@@ -141,9 +141,9 @@ _dcache_flush_range:
.dflush_loop:
! Write back the dcache
ocbwb @r4
- cmp/hs r4, r5
- bt/s .dflush_loop
add #32, r4 ! Move on to next cache block
+ cmp/hi r4, r5
+ bt .dflush_loop
.dflush_exit:
rts
@@ -197,9 +197,9 @@ _dcache_purge_range:
.dpurge_loop:
! Write back and invalidate the D cache
ocbp @r4
- cmp/hs r4, r5
- bt/s .dpurge_loop
add #32, r4 ! Move on to next cache block
+ cmp/hi r4, r5
+ bt .dpurge_loop
.dpurge_exit:
rts
@@ -239,9 +239,9 @@ _dcache_purge_all_with_buffer:
! Allocate and then invalidate the dcache line
movca.l r0, @r4
ocbi @r4
- cmp/hs r4, r5
- bt/s .dpurge_all_buffer_loop
add #32, r4 ! Move on to next cache block
+ cmp/hi r4, r5
+ bt .dpurge_all_buffer_loop
rts
nop
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|