notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: finish offload code to TI C64x DSP
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
spu_c64x.h
diff --git
a/plugins/dfsound/spu_c64x.h
b/plugins/dfsound/spu_c64x.h
index
ba2a4c3
..
d4e73e9
100644
(file)
--- a/
plugins/dfsound/spu_c64x.h
+++ b/
plugins/dfsound/spu_c64x.h
@@
-1,9
+1,25
@@
+#define COMPONENT_NAME "pcsxr_spu"
+
+enum {
+ CCMD_INIT = 0x101,
+ CCMD_DOIT = 0x102,
+};
struct region_mem {
unsigned char spu_ram[512 * 1024];
int RVB[NSSIZE * 2];
int SSumLR[NSSIZE * 2];
struct region_mem {
unsigned char spu_ram[512 * 1024];
int RVB[NSSIZE * 2];
int SSumLR[NSSIZE * 2];
+ int SB[SB_SIZE * 24];
+ // careful not to lose ARM writes by DSP overwriting
+ // with old data when it's writing out neighbor cachelines
+ int _pad1[128/4 - ((NSSIZE * 4 + SB_SIZE * 24) & (128/4 - 1))];
SPUCHAN s_chan[24 + 1];
SPUCHAN s_chan[24 + 1];
+ int _pad2[128/4 - ((sizeof(SPUCHAN) * 25 / 4) & (128/4 - 1))];
struct spu_worker worker;
struct spu_worker worker;
+ SPUConfig spu_config;
+ // init/debug
+ int sizeof_region_mem;
+ int offsetof_s_chan1;
+ int offsetof_worker_ram;
};
};