Commit graph

227 commits

Author SHA1 Message Date
sunho
364a15efad kernel: Swap thread.cpu 2021-05-03 14:51:13 +02:00
sunho
8972833f82 kernel: Fix gdb 2021-05-03 14:51:13 +02:00
sunho
41f084e5c1 cpu: Rework cpu & thread code base
1. CPU Abstraction
2. More readable, accurate, intuitive thread execution loop
3. Eliminate weird unintuitive callback flag in thread function
4. Use halt instruction to return control to host
5. More accurate context
6. Correctly implement float registers
7. Add basic dynarmic cpu implementation
2021-05-03 14:51:13 +02:00
sunho
c10e4d0b8e mem: Add Block class 2021-05-01 19:18:53 +09:00
sunho
4a0f35abda kernel: Add missing template type 2021-05-01 11:16:19 +09:00
sunho
fa7c84a43f kernel: Add ThreadDataQueue 2021-05-01 11:16:19 +09:00
sunho
13f7a8d423 kernel: Remove waiting_threads from SyncPrimitive 2021-05-01 11:16:19 +09:00
sunho
0c51726e68 kernel: Tidy event flag wait 2021-05-01 11:16:19 +09:00
sunho
4b1b1def0b kernel: Fix condvar signal 2021-05-01 11:16:19 +09:00
sunho
e37cfa101b kernel: Use set instead of heap for priority queue 2021-05-01 11:16:19 +09:00
bookmist
9c74668af4 kernel. TLS init fix, GetThreadInfo thread stack fix 2021-04-26 02:02:17 +02:00
sunho
bc11cee273 thread: Log thread id at breakpoint 2021-04-25 23:51:58 +02:00
sunho
225c454755 kernel: Fix event flag wait infinite loop 2021-04-25 23:51:58 +02:00
sunho
05cbb938cc gdb: Toggle gdbstub with config file 2021-04-25 05:56:02 +02:00
totlmstr
024b71285f mem: split mem.h 2021-04-12 17:32:23 +02:00
scribam
cecc44cba4
kernel: Update SceKernelSegmentInfo/SceKernelModuleInfo structures (#1213) 2021-04-04 22:36:57 +02:00
bookmist
892f88cbff kernel: callback from callback fix 2021-03-29 01:15:30 +02:00
Francisco José García García
8411642fb1 modules/Sce(LibKernel/Threadmgr): Implement some event function.
Co-authored-by: Zangetsu38 <Dante38@free.fr>
2021-03-03 13:33:17 +01:00
Pedro Montes Alcalde
100a7a6bfe
vita3k: Some refactor on compiler warnings (#1170) 2021-02-22 15:59:47 +01:00
bookmist
487e47f742
modules/AvPlayer: clean unused code (#1165) 2021-02-20 22:45:12 +01:00
sunho
e398c4e562 kernel: reimplement run_callback 2021-02-20 20:08:28 +01:00
sunho
113f1b6e7d kernel: add cpu instance pool 2021-02-20 20:08:28 +01:00
sunho
1383c09e01 kernel: call_svc can be defined in modules 2021-02-20 20:08:28 +01:00
bookmist
2557ebd81e kernel: proper initialisation of thread local storage 2021-02-17 08:36:18 +01:00
bookmist
94c6df98e6 kernel: Clear TLS on first get
Fix unvalid memory read on LLE libUlt.suprx
2021-02-17 08:36:18 +01:00
bookmist
0d4fc49b8e
modules/SceAvPlayer: implement event callback and stub some functions (#1138) 2021-02-15 12:25:40 +01:00
1whatleytay
2f2fc4430c
vita3k: use thread-safe gmtime and localtime (#1080) 2021-02-09 04:44:52 +01:00
scribam
f5f2b486af kernel: Update SceKernelThreadInfo structure 2021-02-06 13:42:20 +01:00
bookmist
c74a5c7d20 modules/SceLibKernel,SceThreadmgr: sceKernelGetLwMutexInfo, sceKernelGetLwMutexInfoById, _sceKernelGetLwMutexInfoById implemented 2021-01-30 03:05:57 +01:00
Zangetsu38
3cf56a9fb0 SceModulemgr: move some functions. 2021-01-25 15:49:21 +01:00
Francisco José García García
4738ce7d90 thread: move and implement some functions to SceThreadmgr. 2021-01-25 15:49:21 +01:00
EXtremeExploit
83baa4f6bc kernel: Check if a thread is already running when starting it 2021-01-10 13:21:18 +01:00
EXtremeExploit
7a2b6982df gxm: Optimize hashing and resolve_export function 2020-11-16 05:40:32 +09:00
sunho
2841d9b2d7 kernel: fix clearing bug in waiteventflag 2020-10-31 16:48:56 +09:00
scribam
c613017836 thread: Save the returned value to use it in sceKernelWaitThreadEnd and sceKernelWaitThreadEndCB 2020-10-18 23:32:47 +02:00
sunho
22094e0d10 kernel: fix relocation type 2
Reference: https://github.com/aerosoul94/ida_gel/blob/master/src/vita/psp2_loader.cpp#L292
2020-08-14 13:30:55 +02:00
Sunho Kim
a4cab354a0
Merge pull request #801 from sunho/add-lle-return-track
Add lle return logging
2020-07-26 23:16:18 +09:00
sunho
c2d36f818c avcdec: stub codec engine and memsize functions 2020-07-25 04:10:28 +09:00
Sunho Kim
9950d6e51d debug: log offset in memory watch 2020-07-14 15:15:44 +09:00
Sunho Kim
2a231c60f0
Merge pull request #657 from 1whatleytay/ngsdecode
Tsubomi
2020-07-10 04:41:03 +09:00
1whatleytay
0beecf723d ngs: run clang-format 2020-07-08 14:33:08 -04:00
1whatleytay
77430da4e6 codec: add h264, mjpeg, player 2020-07-08 14:11:51 -04:00
sunho
edf48bacd8 cpu: add lle function return logging 2020-07-06 02:22:03 +09:00
Sunho Kim
cdf9de4dbb debug: refactor cpu & print unicorn error stack traceback 2020-06-21 22:38:46 +03:00
Sunho Kim
2a22d19a20 debug: add stack traceback 2020-06-21 22:38:46 +03:00
Sunho Kim
f9c936524a
SceFiber: Refactor and fix reset fiber bug (#761) 2020-06-13 13:51:26 +02:00
Sunho Kim
ed06af8354 kernel: implement sceKernelSendSignal and sceKernelWaitSignal 2020-06-13 09:16:33 +02:00
Sunho Kim
62051b7688 SceProcessmgr: implement sceKernelLibcClock 2020-06-13 09:11:43 +02:00
Sunho Kim
31b4d854b3 SceFiber: implement null addrContext behaviour 2020-06-10 20:03:25 +02:00
Sunho Kim
7981d7d035 vita3k: improve code log and memory log & add toggling them through gui 2020-06-09 18:38:14 +09:00