Next Generation Emulation banner

1 - 1 of 1 Posts

·
Premium Member
Joined
·
821 Posts
Discussion Starter · #1 ·
Game boots only with GSDX9, with GSsoft it terminates quickly.
Obviously the game has trouble to stream sound whilst extracting from a big file.
One hour of post mortem debugging to get one "exciting" picture :rolleyes:
After that PCSX2 finally dies :(

some excerpts from the log:

DEV9 read32 1000725c: 00000000
DEV9 read32 10007260: 00000000
DEV9 read32 1000725c: 00000000
DEV9 read32 10007260: 00000000
DEV9 read32 1000725d: 00000000
DEV9 read32 10007261: 00000000
DEV9 read32 1000725d: 00000000
DEV9 read32 10007261: 00000000

padman: DMA Busy ID = 08240208 ret = 1
SB_STAT = 00000020

cmn/mutex2.c(226) : Asertion Failed: m->lockcount == 1

the patches:


gametitle=Pirates - The Legend Of Black Cat PAL
comment= crc=e677b8f1
//skip FMV
patch=0,EE,002b3dc8,word,24020001
// GS_CSR fix 1
patch=0,EE,0015c04c,word,34420002 // ori v0,0(a0)
patch=0,EE,0015c050,word,fc820000 // sd v0,0(a0)
patch=0,EE,0015c05c,word,00000000 // nop
// GS_CSR fix 2
patch=0,EE,0015beb4,word,34420002 // ori v0,0(a0)
patch=0,EE,0015beb8,word,fc820000 // sd v0,0(a0)
patch=0,EE,0015bec4,word,00000000 // nop
// GS_CSR fix 3
patch=0,EE,002d3acc,word,3442c000 // ori v0,v0,c000
patch=0,EE,002d3adc,word,fc620000 // sd v0,0(v1)
// GS_CSR fix 4
patch=0,EE,002d34bc,word,34420002 // ori v0,v0,2
patch=0,EE,002d34cc,word,fc620000 // sd v0,0(v1)
//
//skip sound streaming
patch=0,EE,002ae24c,word,00000000
//
// The junk yard...
// fix "cmn/mutex2.c(226) : Asertion Failed: m->lockcount == 1"
//patch=0,EE,002bb614,word,00000000
//patch=0,EE,002b2c80,word,00000000
//patch=0,EE,002b1084,word,00000000
//patch=0,EE,002b1064,word,00000000
//patch=0,EE,002b1060,word,03e00008
//
//patch=0,EE,002e0614,word,00000000
//patch=0,EE,002e0610,word,03e00008
//patch=0,EE,002f69b0,word,00000000
//patch=0,EE,002f68c4,word,24020000


the code where GS_CSR fails:

Code:
lui		a0, $1200		# 0015c034:3c041200	a0=GS_PMODE
lui		v1, $0098		# 0015c038:3c030098	v1=$00980000
ori		a0, a0, $1000		# 0015c03c:34841000	a0=GS_CSR
ori		v1, v1, $967f		# 0015c040:3463967f	v1=$0098967f
nop					# 0015c044:00000000	
__0015c048:					# 
ld		v0, $0000(a0)		# 0015c048:dc820000	v0=GS_CSR
andi		v0, v0, $0002		# 0015c04c:30420002	
bne		v0, zero, $0015c064	# 0015c050:14400004	v __0015c064
addiu		s1, s1, $0001		# 0015c054:26310001	s1=$00000001
slt		v0, v1, s1		# 0015c058:0071102a	
beq		v0, zero, $0015c048	# 0015c05c:1040fffa	^ __0015c048
nop					# 0015c060:00000000	
__0015c064:					# 
lui		v0, $0098		# 0015c064:3c020098	v0=$00980000
__0015c068:					# 
ori		v0, v0, $967f		# 0015c068:3442967f	v0=$0098967f
slt		v0, v0, s1		# 0015c06c:0051102a	
beq		v0, zero, $0015c0a0	# 0015c070:1040000b	v __0015c0a0
lq		ra, $0020(sp)		# 0015c074:7bbf0020	
jal		$00115508		# 0015c078:0c045542	^ FNC_00115508
nop					# 0015c07c:00000000	
lui		a0, $006b		# 0015c080:3c04006b	a0=$006b0000
lui		a1, $006b		# 0015c084:3c05006b	a1=$006b0000
addiu		a0, a0, $c028		# 0015c088:2484c028	
a0="GS Wait timed out at %s %d after %d clicks\n"
addiu		a1, a1, $c058		# 0015c08c:24a5c058	
a1="render_manager_open.cpp"

lui		a0, $1200		# 0015be9c:3c041200	a0=GS_PMODE
lui		v1, $0098		# 0015bea0:3c030098	v1=$00980000
ori		a0, a0, $1000		# 0015bea4:34841000	a0=GS_CSR
ori		v1, v1, $967f		# 0015bea8:3463967f	v1=$0098967f
nop					# 0015beac:00000000	
__0015beb0:					# 
ld		v0, $0000(a0)		# 0015beb0:dc820000	v0=GS_CSR
andi		v0, v0, $0002		# 0015beb4:30420002	
bne		v0, zero, $0015becc	# 0015beb8:14400004	v __0015becc
addiu		fp, fp, $0001		# 0015bebc:27de0001	fp=$00000002
slt		v0, v1, fp		# 0015bec0:007e102a	
beq		v0, zero, $0015beb0	# 0015bec4:1040fffa	^ __0015beb0
nop					# 0015bec8:00000000	
__0015becc:					# 
lui		v0, $0098		# 0015becc:3c020098	v0=$00980000
__0015bed0:					# 
ori		v0, v0, $967f		# 0015bed0:3442967f	v0=$0098967f
slt		v0, v0, fp		# 0015bed4:005e102a	
beq		v0, zero, $0015bf04	# 0015bed8:1040000a	v __0015bf04
nop					# 0015bedc:00000000	
jal		$00115508		# 0015bee0:0c045542	^ FNC_00115508
nop					# 0015bee4:00000000	
lui		a0, $006b		# 0015bee8:3c04006b	a0=$006b0000
lui		a1, $006b		# 0015beec:3c05006b	a1=$006b0000
addiu		a0, a0, $c028		# 0015bef0:2484c028	
a0="GS Wait timed out at %s %d after %d clicks\n"
addiu		a1, a1, $c058		# 0015bef4:24a5c058	
a1="render_manager_open.cpp"
daddu		a3, fp, zero		# 0015bef8:03c0382d	a3=$0000000e


__002d3a98:					# 
lui		v1, $1200		# 002d3abc:3c031200	v1=GS_PMODE
addiu		a0, zero, $4000		# 002d3ac0:24044000	a0=$00004000
ori		v1, v1, $1000		# 002d3ac4:34631000	v1=GS_CSR
__002d3ac8:					# 
ld		v0, $0000(v1)		# 002d3ac8:dc620000	v0=GS_CSR
andi		v0, v0, $c000		# 002d3acc:3042c000	
nop					# 002d3ad0:00000000	
nop					# 002d3ad4:00000000	
nop					# 002d3ad8:00000000	
bne		v0, a0, $002d3ac8	# 002d3adc:1444fffa	^ __002d3ac8
	
lui		v1, $1200		# 002d34ac:3c031200	v1=GS_PMODE
ori		v1, v1, $1000		# 002d34b0:34631000	v1=GS_CSR
nop					# 002d34b4:00000000	
__002d34b8:					# 
ld		v0, $0000(v1)		# 002d34b8:dc620000	v0=GS_CSR
andi		v0, v0, $0002		# 002d34bc:30420002	
nop					# 002d34c0:00000000	
nop					# 002d34c4:00000000	
nop					# 002d34c8:00000000	
beq		v0, zero, $002d34b8	# 002d34cc:1040fffa	^ __002d34b8		


lui		v1, $1200		# 002d34ac:3c031200	v1=GS_PMODE
ori		v1, v1, $1000		# 002d34b0:34631000	v1=GS_CSR
nop					# 002d34b4:00000000	
__002d34b8:					# 
ld		v0, $0000(v1)		# 002d34b8:dc620000	v0=GS_CSR
andi		v0, v0, $0002		# 002d34bc:30420002	
nop					# 002d34c0:00000000	
nop					# 002d34c4:00000000	
nop					# 002d34c8:00000000	
beq		v0, zero, $002d34b8	# 002d34cc:1040fffa	^ __002d34b8
 
1 - 1 of 1 Posts
Top