Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
02693 Crash/Freeze Critical (emulation) Have not tried Nov 30, 2008, 02:42 Dec 3, 2008, 08:51
Tester Fujix View Status Public Platform
Assigned To Resolution Fixed OS
Status [?] Resolved Driver
Version 0.128u3 Fixed in Version 0.128u5 Build
Fixed in Git Commit Github Pull Request #
Summary 02693: dacholer, kickboy: Freeze on the title or credit.
Description dacholer freezes on the title screen and kickboy freezes when you insert credit.
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems dacholer, kickboy
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
4
User avatar
No.03173
Luigi30
Tester
Nov 30, 2008, 06:43
From the diff:

-		cpunum_set_input_line_and_vector(machine, 1, 0, HOLD_LINE, 0x30);
+		cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0x30);

It's passing sound IRQs to the wrong CPU and hanging up because of it, I think? It won't take space->machine->cpu[1].
User avatar
No.03176
Mamesick
Senior Tester
Nov 30, 2008, 07:13
The CPU number should be already stored in "device" object so I wouldn't say a stupidity but it could be a core bug. (cpunum is always zero?)
User avatar
No.03183
Luigi30
Tester
Nov 30, 2008, 18:06
edited on: Nov 30, 2008, 18:19
I have it printing "MSM interrupt" to the error log every time it triggers one in the driver. When it freezes up, MAME dumps a couple kilobytes of "MSM interrupt" to the error log in a few seconds.

u3 to u4:
-			cpunum_set_input_line_and_vector(machine, 1, 0, HOLD_LINE, 0x38);
+			cpu_set_input_line_and_vector(machine->cpu[cpunum], 0, HOLD_LINE, 0x38);

Changing cpu[cpunum] to cpu[1] as it was in u3 seems to fix the problem. It was trying to send the IRQ to the active CPU (0, executing the program) instead of CPU 1.

Fix sent.
User avatar
No.03205
Fujix
Administrator
Dec 3, 2008, 08:51
Fix submitted to Devs.