aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/cache.S
diff options
context:
space:
mode:
authorMarcus Comstedt2006-06-30 20:21:42 +0000
committerMarcus Comstedt2006-06-30 20:21:42 +0000
commit25f68b08ab8c1fc35aab2d060b0f38ebf7856785 (patch)
tree7a5847167a031aaa1eaeb6e3cb1a5bd8e8161330 /backends/platform/dc/cache.S
parent8c5ead1f70ec3bb49e6633af0192bbcc90f4a1bf (diff)
downloadscummvm-rg350-25f68b08ab8c1fc35aab2d060b0f38ebf7856785.tar.gz
scummvm-rg350-25f68b08ab8c1fc35aab2d060b0f38ebf7856785.tar.bz2
scummvm-rg350-25f68b08ab8c1fc35aab2d060b0f38ebf7856785.zip
Moved backends/dc into new platform directory.
svn-id: r23357
Diffstat (limited to 'backends/platform/dc/cache.S')
-rw-r--r--backends/platform/dc/cache.S38
1 files changed, 38 insertions, 0 deletions
diff --git a/backends/platform/dc/cache.S b/backends/platform/dc/cache.S
new file mode 100644
index 0000000000..1af1678ced
--- /dev/null
+++ b/backends/platform/dc/cache.S
@@ -0,0 +1,38 @@
+
+ .globl _flush_instruction_cache
+
+ .align 2
+
+ ! Flush the SH instruction cache
+
+_flush_instruction_cache:
+ mova fcc,r0
+ mov.l p2_mask,r1
+ or r1,r0
+ jmp @r0
+ nop
+ nop
+fcc:
+ mov.l ccr_addr,r0
+ mov.l ccr_data,r1
+ mov.l r1,@r0
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ nop
+ rts
+ nop
+
+ .align 2
+
+p2_mask:
+ .long 0xa0000000
+ccr_addr:
+ .long 0xff00001c
+ccr_data:
+ .word 0x0905
+