Katharine Chui
b570cacd90
add Memory::IsValidNullTerminatedString
2024-05-01 22:58:01 +08:00
Katharine Chui
49cd9c76d9
sysclib_sprintf psp memory bound checking instead of length limits
2024-05-01 20:23:47 +08:00
Katharine Chui
fa0eaebfb5
cleanup
2024-05-01 17:32:13 +08:00
Katharine Chui
7ff48f97c3
implement sysclib_sprintf
2024-05-01 01:43:24 +08:00
Unknown W. Brackets
810d8c0890
Debugger: Use dedicated func to notify mem copy.
2023-09-24 19:07:36 -07:00
Henrik Rydgård
dc74778dea
Do the last ones too
2023-02-09 10:27:29 +01:00
Henrik Rydgård
c52db636ce
Optimize tag formatting
2023-02-09 10:22:46 +01:00
Henrik Rydgård
027edd6f59
Cleanup and warning fix in the new sysclib functions
2023-01-13 10:45:30 +01:00
Henrik Rydgård
97bef89486
Some cleanup when fixing a warning
2023-01-13 10:42:03 +01:00
Henrik Rydgård
d71c6a0e95
Add some quick memory safety to the functions from #16095
2023-01-12 11:21:38 +01:00
Henrik Rydgård
8a66498359
Merge pull request #16095 from sum2012/sysclib_minor
...
Add some Sysclib 's nids
2023-01-12 11:14:53 +01:00
Henrik Rydgård
edaa5246d1
Merge pull request #16771 from hrydgard/more-getpointer-cleanup
...
Core: A bit more GetPointer cleanup.
2023-01-10 14:36:08 +01:00
Henrik Rydgård
e1a48d74c4
A bit more GetPointer cleanup.
...
Probably not worth it for performance reasons, but some semantic cleanup
is good, especially the accidental GetPointer -> writable casts without
using GetPointerWrite.
Using Unchecked on already checked pointers, or when we'd crash anyway
if it returned nullptr, is good for clarity.
2023-01-10 12:13:47 +01:00
sum2012
eacdfe5246
Fix
2022-11-02 15:57:26 +08:00
sum2012
63606634bb
Add InterruptManagerForKernel
...
Find in #16297
2022-10-31 20:17:12 +08:00
Unknown W. Brackets
c4bf2cb5c0
jit: Ignore zero byte icache invalidates.
...
These were getting marked pending and were clearing all cache, causing
performance concerns in for example LittleBigPlanet.
2022-10-15 18:27:52 -07:00
sum2012
497bad3312
oop
2022-09-25 12:04:33 +08:00
sum2012
5c7485b815
Change int to size_t
2022-09-25 10:18:16 +08:00
sum2012
d084b5cf96
strtol and toupper use native
...
and buildfix for ubuntu
Thanks unknownbrackets
2022-09-25 08:31:46 +08:00
sum2012
d17c87dc78
oop
2022-09-24 22:49:11 +08:00
sum2012
e42a970ee3
Add some sysclib's nids
...
Find in prxshot.prx
2022-09-24 22:40:19 +08:00
Unknown W. Brackets
ccd4e92184
Kernel: Use PSPPointer for status objects.
...
Code makes more sense when reading ->size rather than offset 0.
2022-09-03 10:44:12 -07:00
Henrik Rydgård
ecb84987ef
Remove allocation from the heaviest MemBlockInfo path (BlockTransfer). Required some refactoring.
2022-09-01 11:59:35 +02:00
Henrik Rydgård
e6403d7157
Split GetPointer into two versions, to help with const correctness
2022-07-24 13:26:19 +02:00
Unknown W. Brackets
80e054b797
Debugger: Avoid write tag lookup on small alloc.
2022-02-06 09:28:48 -08:00
Unknown W. Brackets
f530be0969
Dialog: Prevent reschedule on shutdown start.
...
This is a bit strange, but tests seem to suggest this is correct.
A worse priority thread won't run before savedata shutdown hits 0, but the
thread that initiated shutdown runs before shutdown completes.
Fixes Freakout Extreme Freeride loading savedata.
2021-08-14 20:15:34 -07:00
Unknown W. Brackets
f88648c5a2
Kernel: Define most reported missing kernel funcs.
...
Kernel plugins and patches are still often not going to work, but might as
well define these.
2021-04-10 17:10:35 -07:00
Unknown W. Brackets
aa89ed5111
Debugger: Include source tag in memcpys.
2021-04-03 18:11:44 -07:00
Unknown W. Brackets
f7740edc6d
Debugger: Add more metadata for memory usage.
2021-02-15 15:01:21 -08:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
1dc5ee424b
SaveState: Split out Do types to reduce headers.
2020-08-10 08:03:44 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
sum
61fa4453dd
Add two Kernel_Library's nids ( #13218 )
...
* Add two Kernel_Library's nids
Add HLE_KERNEL_SYSCALL flag
used in #13205
* Remove HLE_KERNEL_SYSCALL flag
as @unknownbrackets suggest
* Add space
* + ","
2020-07-29 20:14:10 +02:00
Henrik Rydgård
4bcd8df079
Logging improvements and warning fixes.
...
(Had a super odd crash that I can't repro anymore in PPGe init...)
2020-06-22 22:46:03 +02:00
sum2012
de947a6f61
Fix by @unknownbrackets
2020-06-21 11:21:11 +08:00
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