Unknown W. Brackets
6149ac584f
jit: Add interface to precompile functions.
...
This doesn't actually do any preloading yet, it just adds an API.
2018-01-06 16:43:38 -08:00
Henrik Rydgård
d6b7cde718
Fix a use-after-free in sceKernelTerminateDeleteThread
2017-12-03 02:33:50 +01:00
Unknown W. Brackets
9af0397e84
Kernel: Fix delete thread null check.
2017-11-25 14:08:50 -08:00
Henrik Rydgård
4cdbe0b957
Fix an ancient bug in sceKernelExitDeleteThread
2017-03-10 00:11:01 +01:00
latot
7047ad2271
fix sscanf types
2016-12-02 22:46:52 -03:00
Unknown W. Brackets
d876da1a01
Initialize fp correctly on a new thread.
2016-09-05 08:57:09 -07:00
Unknown W. Brackets
1e51a03d5a
Point ra to the correct place on a new thread.
...
Turns out some games read the ra, maybe long jmps or something?
2016-09-05 08:56:27 -07:00
Unknown W. Brackets
8df298f622
Thread: Auto-resume dispatch for worse threads.
...
Seems this doesn't happen when you start a better priority thread, pretty
reproducibly.
2016-05-31 09:55:20 -07:00
Unknown W. Brackets
197f3393df
Thread: Better/minor accuracy for sysclock delay.
...
Certain negative values shouldn't cause a delay, could help if a game has
a bug.
2016-05-31 09:55:19 -07:00
Unknown W. Brackets
d0d570c6ac
ThreadEvent: Delete threads after handler runs.
...
It should actually run on the thread itself, it seems, but that's probably
not as important as the thread still existing. This allows the handler to
get the thread name or etc.
2016-05-30 13:00:23 -07:00
Unknown W. Brackets
65820d6184
Thread: Use a short delay for 0us delays after all.
...
It seems the behavior varies. Should help #6924 and #6981 .
2016-05-29 22:04:47 -07:00
Unknown W. Brackets
4fc12cdd29
ThreadEvent: Handle getting scheduled off a thread.
2016-05-29 00:59:52 -07:00
Unknown W. Brackets
97cce6ccfe
ThreadEvent: Trigger handlers for start/exit too.
...
Start isn't in the right place or on the right thread, and exit isn't on
the right thread either. But these don't seem very particular about what
thread they run on.
2016-05-28 21:19:28 -07:00
Unknown W. Brackets
c6cd614f2b
Thread: Allow mipscalls to be scheduled in a row.
...
Should be fine to just use the stack to save these things, likely that's
what happens in real firmware. This fixes issues when a second mipscall
is scheduled in the same HLE syscall.
2016-05-28 21:18:03 -07:00
Unknown W. Brackets
ceb36fc81d
ThreadEvent: Allow an exit event handler on self.
2016-05-28 21:17:54 -07:00
Unknown W. Brackets
be1cde15ba
ThreadEvent: Initial support for create/delete.
2016-05-28 21:17:36 -07:00
Unknown W. Brackets
e9916bdf0b
ThreadEvent: Add management functions.
...
Currently never being triggered, though.
2016-05-28 21:17:16 -07:00
Unknown W. Brackets
04576189b4
Callbacks: Fix delete when multiple for a thread.
...
Oops, this was deleting all after the deleted one.
2016-05-28 21:15:25 -07:00
Henrik Rydgard
4197148dc4
Add some paranoid checks hoping to fix crashes reported in Google Play developer console.
2016-04-09 18:27:35 +02:00
Unknown W. Brackets
ef1dc583a2
Fix various minor warnings.
2016-03-20 14:17:51 -07:00
Unknown W. Brackets
8c337850fc
Disallow thread termination in interrupts.
...
But only for certain SDK versions, as per testing.
2015-11-15 11:38:59 -08:00
Unknown W. Brackets
9591db2daa
Cleanup RETURN() in __KernelWaitCurThread().
...
This hasn't been needed for a while.
2015-10-24 13:11:07 -07:00
Henrik Rydgard
b07b002040
Introduce "Compatibility Flags".
...
These should be used very restrictively, see comment in Compatibility.h.
Should help #8004 , by disabling depth rounding in Fight Night round 3.
2015-09-27 01:23:20 +02:00
Unknown W. Brackets
91632a1ea5
Add some fallback logic when scheduling dies.
2015-09-12 13:36:52 -07:00
Unknown W. Brackets
c03b163537
Move ThreadQueueList to a separate file.
...
Not reused anywhere, but just so it's a little cleaner.
2015-09-12 13:03:15 -07:00