Commit Graph

214 Commits

Author SHA1 Message Date
Unknown W. Brackets 4cec22823f Implement the PSP's VPL allocation method.
May help some games which hit allocation / free errors.  VPLs are not
common.

May improve performance in games using VPLs heavily, like Pangya.
2014-02-02 07:46:22 -08:00
Unknown W. Brackets 5e4a076798 Typo. 2014-01-31 09:41:29 -08:00
Unknown W. Brackets fb689b45f1 Spelling fix. 2014-01-30 22:49:30 -08:00
Unknown W. Brackets 850d640f42 Correct return values, validation in sdkver funcs.
I am unable to reproduce any validation, so these changes make it match
tests on a PSP.  But then, maybe it's my custom firmware getting in the
way?  Added reporting to see the effect better.
2014-01-30 22:13:59 -08:00
Unknown W. Brackets be55be7dcb Fix some formatting warnings. 2013-12-29 16:08:06 -08:00
Henrik Rydgård 79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets 6816bb9948 Allow memblocks to be used with partition funcs.
It seems that the uids are interchangeable.  Probably won't matter, but
now they have proper uids.
2013-12-26 21:00:17 -08:00
Henrik Rydgard 32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Unknown W. Brackets e73d43c434 Correct sceKernelTlspl func names, etc.
This is mostly pedantic but it's nice to have the right names.
2013-12-02 23:40:16 -08:00
Unknown W. Brackets a72340255f Support %X and %x in sceKernelPrintf(). 2013-10-01 08:00:08 -07:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets 281685fd43 Fix minor scheduling issues in the vpl test. 2013-09-09 01:05:38 -07:00
Unknown W. Brackets be468af52d Refactor waiting thread removal. 2013-09-09 00:22:00 -07:00
Unknown W. Brackets 4bd391b098 Refactor waiting thread cleanup. 2013-09-09 00:22:00 -07:00
Henrik Rydgard 8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Unknown W. Brackets f35b164d11 Refactor wait verification a bit in kernel waits. 2013-09-07 10:54:00 -07:00
Unknown W. Brackets 543df7ca7a Refactor wait timeouts.
Also, make them not write the timeout ptr if the thread stopped waiting.
Feels safer.
2013-09-03 22:32:22 -07:00
Unknown W. Brackets b20bb3b609 Refactor down the begin/end callback stuff. 2013-09-03 01:21:52 -07:00
Unknown W. Brackets 1bf974aff6 Implement VPL/FPL callback handlers.
Smells like time to refactor, there are less differences than I expected.
2013-09-03 01:21:51 -07:00
Unknown W. Brackets 686d893d5c Return more correct errors inside interrupts. 2013-08-28 22:35:06 -07:00
Unknown W. Brackets 61fae4e920 Return proper errors while dispatch disabled.
In at least the majority of waits.
2013-08-27 23:55:37 -07:00
Unknown W. Brackets 354dbfec6c Improve some reporting of options structs. 2013-08-25 16:43:47 -07:00
Unknown W. Brackets 18832f3ca7 Wrap sceKernelFreeFpl() and use better errors. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 6c6aa1b8ee Wrap sceKernelAllocateFpl() and friends. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 61e240f482 Allocate fpl blocks in a ring, like the PSP. 2013-08-25 16:38:48 -07:00
Unknown W. Brackets 8d750d65e8 Properly remove timed out fpl waits from status. 2013-08-25 16:38:48 -07:00
Unknown W. Brackets a947c95829 Clean up sceKernelReferFplStatus(). 2013-08-25 16:38:47 -07:00
Unknown W. Brackets fb95f07c5d Implement cancel and delete for fpls. 2013-08-25 16:38:47 -07:00
Unknown W. Brackets a2471b810c Implement basic fpl waiting. 2013-08-25 16:38:46 -07:00
Unknown W. Brackets 107b464ace Handle the fpl alignment option as well. 2013-08-25 16:38:46 -07:00
Unknown W. Brackets 0969261e3e Fix error handling in sceKernelCreateFpl(). 2013-08-25 15:14:21 -07:00
Unknown W. Brackets f48b730828 Wrap sceKernelCreateFpl and fix refer status.
Just initial changes to make it test properly.
2013-08-25 15:14:20 -07:00
Unknown W. Brackets 1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
Unknown W. Brackets 72ce41f41c Report a couple unhandled blocks. 2013-08-21 01:20:06 -07:00
Henrik Rydgard 25ab9edd8a Revert "Revert "Stop lying about free memory in HLE.""
This reverts commit f13d6e4109.
2013-08-20 01:17:52 +02:00
Henrik Rydgard f13d6e4109 Revert "Stop lying about free memory in HLE."
This reverts commit 8191ea4d76.
2013-08-20 00:58:02 +02:00
Unknown W. Brackets 4be06d2432 Wrap the msgpipe send functions. 2013-08-18 18:38:10 -07:00
Unknown W. Brackets b9a71640eb Implement basic timeouts for msg pipes. 2013-08-18 18:38:08 -07:00
Unknown W. Brackets 8191ea4d76 Stop lying about free memory in HLE. 2013-08-17 09:28:44 -07:00
Unknown W. Brackets 008052e6d6 Fix some variable hiding warnings. 2013-08-12 23:32:38 -07:00
Unknown W. Brackets fff0af844b Fix bounds check in sceKernelPrintf().
Wasn't allowing a string ending in %08x.
2013-08-06 23:52:38 -07:00
Unknown W. Brackets c2c9179406 Fix TLS allocation (been there a while...)
This worked for the most common case, but was a typo.
2013-07-31 08:15:07 -07:00
Unknown W. Brackets 4a4f07df8e Add waiting/resuming to TLS funcs.
Nice and simple, no callbacks or timeouts.
2013-07-31 00:22:36 -07:00
Unknown W. Brackets ddc2c15ce8 Remove some unsigned < 0 comparisons. 2013-07-26 22:12:12 -07:00
Unknown W. Brackets 81f7103e0b Use *_le for the sceKernel* funcs. 2013-07-25 08:04:34 -07:00
Unknown W. Brackets d8eede0b9a Add some unknown syscalls from reporting.
These are being linked in by games, so defining them will log them when
they are hit.
2013-06-30 12:05:14 -07:00
Unknown W. Brackets 933c8abb55 Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
2013-06-18 23:54:29 -07:00
Henrik Rydgård 0abf322c1d Merge pull request #1961 from unknownbrackets/savestates
Fix some missing things from save states
2013-05-28 00:41:01 -07:00
Unknown W. Brackets 7cffcd2773 Correct TLS object save stating. 2013-05-27 23:48:31 -07:00
Unknown W. Brackets 77b0688d92 Recalculate numWaitThreads all the time.
Before, it could go negative by having a thread woken a second time
(e.g. because of a delete) before it actually scheduled and woke up.
2013-05-27 22:44:10 -07:00