EmulatorArchive / jpcsp

Automatically exported from code.google.com/p/jpcsp
1 stars 0 forks source link

Fix hle.sceAtrac3plus get a huge bufferSize #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tales of VS - ULJS00209
http://www.emunewz.net/forum/showthread.php?tid=2388&page=2

09:27:24 DEBUG hle.sceAtrac3plus - ATRAC3 0 - sceAtracSetDataAndGetID 
buffer=0x0977BAB0, bufferSize=0xDEADBEEF

I analysis that "DEADBEEF" is come from 
jpcsp\src\jpcsp\HLE\kernel\types\SceKernelThreadInfo.java
 for (int i = _ra; i > _zr; i--) {
 cpuContext.setRegister(i, 0xDEADBEEF);
 }
 change to cpuContext.setRegister(i, 0x00100000);
 will be fixed

Not sure this change will break other game or not.

v2838 log
http://www.emunewz.net/forum/attachment.php?aid=10716

v2956 modify log
http://www.emunewz.net/forum/attachment.php?aid=12457

Original issue reported on code.google.com by consig...@gmail.com on 10 Jan 2013 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r3096
Can close this issue

Original comment by consig...@gmail.com on 13 Apr 2013 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by gi...@web.de on 22 May 2013 at 1:59