sum2012
1f37ce65bb
Add sysclib_strncmp,sysclib_memmove
...
Add a memory check in sysclib_strstr
ref:
https://github.com/jpcsp/jpcsp/blob/master/src/jpcsp/HLE/modules/SysclibForKernel.java#L107
2020-06-21 10:24:10 +08:00
sum2012
10112fa6a2
Change to @unknownbrackets logic
...
Avoid warnings
2020-06-13 20:46:35 +08:00
sum2012
d0d2834fc9
oop
2020-06-13 06:58:02 +08:00
sum2012
6913d3942f
Add sysclib_strstr
...
jpcsp ref:
b4158f2ec7
2020-06-13 06:50:12 +08:00
sum2012
d17f50e07b
Kill the log as @hrydgard suggest
2020-06-07 18:28:09 +08:00
sum2012
6254c12e6c
Reduce sysclib_memcpy log level
...
The function is right.
Tested on "Hatsune Miku Project Diva Extend" chinese patched version
2020-06-07 18:17:09 +08:00
Unknown W. Brackets
7d36b70a8e
Kernel: Rename conflicting kernel object names.
...
These are names that can often conflict with system headers in ports.
Let's just simplify by prefixing with PSP.
No actual functional/code changes, just syntax and names.
2020-03-15 08:33:40 -07:00
Henrik Rydgård
553ea23c34
Add memory range checks to a few little-used sysclib functions. Might help #12359 .
2019-09-27 22:58:18 +02:00
z2442
e5b75dc294
Added a check to the pointer for memcpy
...
This check enables the newer builds of daedalus to run.
2019-01-05 18:46:38 -05:00
Unknown W. Brackets
fd8a0612fa
SaveState: Initialize some memory that is saved.
...
At the very least, will help them compress better. Also good not to leak
random memory.
2018-06-22 21:29:18 -07:00
Unknown W. Brackets
395ac32d63
Debugger: Run memory breakpoints on mobile.
2018-06-06 17:31:56 -07:00
Unknown W. Brackets
4b4770bbc5
Log kernel syscalls with a K.
...
This way they can be properly differentiated.
2016-08-04 09:46:26 -07:00
Henrik Rydgard
cde585a29a
Include dependency cleanup
2015-07-29 11:48:20 +02:00
Unknown W. Brackets
2450724be2
Make Memory::Memcpy() execute memchecks directly.
...
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets
fcf0518223
Update all the HLE tables with arg and ret info.
2015-03-22 20:51:55 -07:00
Unknown W. Brackets
0a8e6c2a06
Remove some unused functions.
2014-12-14 17:35:20 -08:00
Lioncash
4ccb838306
Core: Mark some module functions as static
2014-12-08 04:40:08 -05:00
sum2012
758ddffc37
Prevent unknown getpointer in sceKernelMemset
...
Fix #7064
2014-11-08 06:49:24 +08:00
Henrik Rydgard
d24abb3af0
More GetPointer cleanup. memCardDirectory->memStickDirectory.
2014-10-19 23:20:51 +02:00
Unknown W. Brackets
2f90c8d35a
Fix a bad == comparison typo.
2014-07-15 23:33:01 -07:00
Unknown W. Brackets
2910f7e7a2
Flush icache before memcpys.
...
Maybe there's a way to optimize this better...
2014-07-05 13:23:47 -07:00
Unknown W. Brackets
3498b33033
Allow sub interrupts to be enabled before register.
...
Could've caused interrupts, primarily vblanks, not to run because we
implicitly disabled them on register.
2014-06-21 21:43:44 -07:00
Unknown W. Brackets
87ee0bc650
Return error codes in register/release subintr.
...
This checks for duplicate registrations and other thigns that could've
been causing wrong behavior.
2014-06-21 21:27:58 -07:00
Unknown W. Brackets
8dcc09c9e1
Use a separate func for gpu memset().
2014-05-27 07:50:01 -07:00
Unknown W. Brackets
64f6012dba
Support memsets of framebuffers as uploads.
...
Technically should clear stencil too... maybe it'd be better to handle
separately.
2014-05-27 01:17:09 -07:00
Unknown W. Brackets
8275f613ce
UpdateMemory() now returns whether to skip the cpy.
...
This way it can do it itself as necessary in the right order.
2014-05-25 21:48:41 -07:00
sum2012
b8d82e0a92
Correct Memory check in sysclib_memset
2014-05-18 04:23:10 +08:00
sum2012
bc36555f24
sysclib_memset change to WrapU_UII
2014-05-18 04:20:48 +08:00
sum2012
21c301962b
Add some kernal module
...
Find in bugz Homebrew
2014-05-17 23:06:01 +08:00
Unknown W. Brackets
05ab192c9c
Reduce includes in Core/HLE/.
...
Especially templates.
2014-03-15 11:22:19 -07:00
lioncash
b9886942a7
Fix some vertical alignments in misc Core source files.
2014-03-03 11:16:53 -05:00
The Dax
5bca8f1119
Fix GCC compiler warning.
2014-02-25 07:39:01 -05:00
sum2012
d6790cf906
Add logging and fix savestatus
2014-02-17 20:42:35 +08:00
Unknown W. Brackets
617dcdd8ff
Add some initial kernel sysclib funcs.
2014-02-17 20:39:02 +08:00
Unknown W. Brackets
d2108a962e
Switch from USING_GLES2 to MOBILE_DEVICE.
...
Still using USING_GLES2 for, well, GLES2. But for things that are really
about mobile, we need a new define. Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Unknown W. Brackets
4da08f4f6e
Restore thread if there's no interrupt handler set.
...
If dispatch is disabled and we don't do this, it'll just hang, never
switching back to a thread that can re-enable dispatch.
Fixes #5172 .
2014-01-21 22:47:18 -08:00
Unknown W. Brackets
d24668c9c3
Eat some cycles in suspend/resume interrupt funcs.
...
These are really common, hope this doesn't have ill effects...
2014-01-19 12:44:52 -08:00
Unknown W. Brackets
13bf4d83fa
Add memchecks for common HLE copy operations.
...
Better to catch some than miss everything.
2013-12-14 14:56:05 -08: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
859d14d3f5
Correct sceKernelIsCpuIntrSuspended().
...
It takes a param. Verified by tests, it just returns what the param
means, not anything about the current state.
2013-11-04 08:03:51 -08:00
Unknown W. Brackets
9ebaf7b68b
Fill registers with 0xDEADBEEF after most syscalls.
...
Some, like sceMpegRingbufferPut(), we don't, since... it's complicated.
But most we do, like a real PSP does.
2013-10-30 00:47:04 -07:00
Henrik Rydgard
5bdb9e976b
Track copies of framebuffers in ram created through sceDmacMemcpy, so that we can display them.
...
Fixes MotoGP while also, in effect, committing #3859 .
Removes the horrifying ramDisplayFramebufferPtr hack.
2013-09-21 18:53:55 +02: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
Henrik Rydgard
8c88dff5a4
More log categories, use them (and existing ones). Improve log config.
2013-09-07 22:02:55 +02:00
Henrik Rydgard
324cde5a79
Let's actually use the log category mechanism. A first step.
2013-09-07 21:19:21 +02:00
Unknown W. Brackets
15a0f39fa1
Return yet more errors while inside interrupts.
2013-08-28 23:15:13 -07:00
Unknown W. Brackets
130f664030
Oops, disabling a subintr did not work.
2013-08-27 23:55:34 -07:00
Unknown W. Brackets
cf9f92e12f
Reschedule after resuming interrupts.
2013-08-25 22:38:45 -07:00
Unknown W. Brackets
8d7eb265be
Log context switch time, shorten logging a bit.
...
This is really useful for seeing why games are slow or hanging.
2013-08-25 10:25:49 -07:00
Unknown W. Brackets
e0f05ec382
Oops, lost these two lines editing.
...
They were important, darn.
2013-06-03 00:23:56 -07:00