summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-09-05 17:05:08 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-09-05 17:05:08 +0000
commit872e08ec0e8edb608a3e55c7c8d12f7a25a7a0d7 (patch)
tree0ba50c35c410fda16fb666c9610007cdf57e6a00 /libpcsxcore
parent6dd9da932f969b03e9789baf7dfa63ee3015d84e (diff)
downloadpcsxr-872e08ec0e8edb608a3e55c7c8d12f7a25a7a0d7.tar.gz
psxDma6 - fix missing size variable, GPUOTCDMA_INT
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56846 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/psxdma.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libpcsxcore/psxdma.c b/libpcsxcore/psxdma.c
index 1b28067a..b7a895ff 100644
--- a/libpcsxcore/psxdma.c
+++ b/libpcsxcore/psxdma.c
@@ -81,7 +81,8 @@ void psxDma4(u32 madr, u32 bcr, u32 chcr) { // SPU
}
-void psxDma6(u32 madr, u32 bcr, u32 chcr) {
+void psxDma6(u32 madr, u32 bcr, u32 chcr) {
+ u32 size;
u32 *mem = (u32 *)PSXM(madr);
#ifdef PSXDMA_LOG
@@ -98,13 +99,16 @@ void psxDma6(u32 madr, u32 bcr, u32 chcr) {
return;
}
+ // already 32-bit size
+ size = bcr;
+
while (bcr--) {
*mem-- = SWAP32((madr - 4) & 0xffffff);
madr -= 4;
}
mem++; *mem = 0xffffff;
- RAMDMA_INT( size );
+ GPUOTCDMA_INT( size );
return;
}
#ifdef PSXDMA_LOG