Commit graph

12954 commits

Author SHA1 Message Date
Henrik Rydgard
81c6c4805d Small dispatcher optimizations, cleanup. Still no cube. 2013-01-09 00:42:03 +01:00
Henrik Rydgard
f5c94775b9 Cleanup 2013-01-09 00:12:02 +01:00
Henrik Rydgard
76481a300c Icache must be invalidated. Jit now starts to run, but there's no cube in cube.elf! 2013-01-08 23:52:11 +01:00
Henrik Rydgard
8915677241 More progress but it weirds out... 2013-01-08 21:24:42 +01:00
Henrik Rydgard
e3a4ed510c Fix bug in x86 jit :) 2013-01-08 19:30:28 +01:00
Henrik Rydgard
8c06edc47b It's getting close to the first totally unoptimized jit run. 2013-01-08 17:03:17 +01:00
Henrik Rydgard
b78ad83f00 R10, not R9, points to the mips state... 2013-01-08 14:29:03 +01:00
Henrik Rydgard
7b4cfb702c Get rid of CPU class so that MIPSState can be POD, enabling offsetof 2013-01-08 14:20:06 +01:00
Henrik Rydgard
b3fd1ff34c Lots of various work on the ARM jit. It executes a couple of blocks now. 2013-01-08 13:49:52 +01:00
Henrik Rydgård
28f22a2e26 Merge pull request #365 from raven02/master
Implement sceMpegUnRegistStream & sceMpegAvcDecodeStop &sceMpegChangeGetAuMode
2013-01-08 01:22:30 -08:00
raven02
72e9aed0fe Implement sceMpegChangeGetAuMode 2013-01-08 17:04:51 +08:00
Henrik Rydgård
eb8797dbc9 Merge pull request #364 from unknownbrackets/unknown-syscalls
Add a couple unknown syscalls hit in games
2013-01-08 00:51:33 -08:00
Henrik Rydgård
27cfde291d Merge pull request #362 from unknownbrackets/module-exports
Process module exports and listen to them
2013-01-08 00:50:03 -08:00
Unknown W. Brackets
da865e83dc Write an unknown syscall for unresolved imports. 2013-01-08 00:48:38 -08:00
Unknown W. Brackets
0619f230b6 Cleanup some todos and logging in exports. 2013-01-08 00:32:25 -08:00
Unknown W. Brackets
559095230b Take the module info when starting the main module.
Fixes Ys Seven, Fieldrunners, Shadow of Destiny, maybe others.
2013-01-08 00:32:25 -08:00
Unknown W. Brackets
8cf759bbc4 Load the exports that tell us module info.
Thanks JPCSP.
2013-01-08 00:32:24 -08:00
Unknown W. Brackets
79f9ebc2e1 Keep track of exported symbols and link them later. 2013-01-08 00:32:24 -08:00
Unknown W. Brackets
984663b882 Add a couple unknown syscalls hit in games.
Specifically Velocity and Mad Blocker Alpha.
2013-01-08 00:29:52 -08:00
raven02
8211637b4c Implement sceMpegUnRegistStream & sceMpegAvcDecodeStop 2013-01-08 16:25:50 +08:00
Henrik Rydgård
615a370d73 Merge pull request #361 from unknownbrackets/thread-funcs
sceKernelWaitThreadEnd(), ...ReleaseFromWait(), and warnings
2013-01-08 00:15:22 -08:00
raven02
ec190a8487 Add stubs for sceMp3 & sceMpeg 2013-01-08 14:02:58 +08:00
Unknown W. Brackets
1f21ea4236 Implement sceKernelReleaseWaitThread(). 2013-01-07 19:44:39 -08:00
Unknown W. Brackets
0eb13142aa Avoid calling thread->getName() in release builds.
Profile shows this will save a couple percentage points.
2013-01-07 18:09:26 -08:00
Unknown W. Brackets
138b3a0823 Add warnings to sceKernelCreateThread().
Trying to check when it's being misused.
2013-01-07 18:09:23 -08:00
Unknown W. Brackets
ea9e87b355 Correct error codes for sceKernelWaitThreadEnd(). 2013-01-07 15:43:37 -08:00
Henrik Rydgard
5a7f4acc06 More armjit work 2013-01-08 00:26:42 +01:00
Henrik Rydgard
a2ff416534 Rename files. Rewrite ArmRegCache from scratch. 2013-01-07 22:33:09 +01:00
Mathias Tillman
a6f49c58ca Changed psmf to psmfStruct 2013-01-07 21:04:27 +01:00
Unknown W. Brackets
3b5d1efd56 Implement timeouts for sceKernelWaitThreadEnd(). 2013-01-07 11:11:23 -08:00
Unknown W. Brackets
666ba6ecc3 Properly set thread status on create/term/start. 2013-01-07 10:45:56 -08:00
Unknown W. Brackets
c88ae1e34c Make sceKernelWaitThreadEnd return the exit status.
Also fix the exit status not being recorded properly.
2013-01-07 10:31:19 -08:00
Unknown W. Brackets
5ac7f6a211 Clean up sceKernelWaitThreadEnd() wrappers. 2013-01-07 10:02:11 -08:00
Mathias Tillman
b780e39397 Fixed various potential bugs and compiler warnings 2013-01-07 15:57:19 +01:00
Henrik Rydgard
771382cab9 Merge branch 'master' into armjit 2013-01-07 13:50:32 +01:00
Henrik Rydgard
2f69250fc0 Store fcr0 and fcr31 in context (why was this commented out?) 2013-01-07 13:42:05 +01:00
Henrik Rydgard
7cb95bbc89 Merge branch 'master' into armjit
Conflicts:
	CMakeLists.txt
	Core/MIPS/ARM/RegCache.cpp
2013-01-07 10:25:02 +01:00
Henrik Rydgard
38ae09b50f Merge remote-tracking branch 'origin/armjit' into armjit
Conflicts:
	android/jni/MenuScreens.cpp
2013-01-07 10:22:50 +01:00
Darth1701
3d934292b9 Update Core/Loaders.cpp 2013-01-07 09:10:05 +01:00
Unknown W. Brackets
9beb68e9d4 Stub some scePsmfPlayer funcs to make games work.
Intentionally left out of DoState to avoid breaking save states for
such a little stubbing.
2013-01-06 22:41:07 -08:00
Henrik Rydgård
8e91de7501 Merge pull request #348 from unknownbrackets/mpeg-fix
Fix games broken by the mpeg merge
2013-01-06 22:32:38 -08:00
Unknown W. Brackets
4bc987708b Fake the audio timestamp, games check it. 2013-01-06 20:25:31 -08:00
Unknown W. Brackets
b5b196ade4 Notice the end of video and error appropriately. 2013-01-06 19:54:42 -08:00
Unknown W. Brackets
39b91e906c Mpeg timestamps are in the wrong dword order. 2013-01-06 19:22:52 -08:00
Darth1701
d8d0893c41 Update Core/HLE/sceAtrac.cpp 2013-01-07 03:04:10 +01:00
Unknown W. Brackets
21cfd087e1 Move Action out of Common, don't use savedV0.
Compiler error was annoying me anyway.
2013-01-06 15:56:13 -08:00
Unknown W. Brackets
0d8bdfe989 Allow mipscalls to change the return value.
At least, seems like mpeg needs this.
2013-01-06 14:58:04 -08:00
Henrik Rydgard
9363a867e2 Add glViewport to cached gl state. Add a couple of missing VFPU ops. 2013-01-06 23:23:36 +01:00
Henrik Rydgard
e95cb992dc Until we implement more of sceAtrac, it's better if it pretends to be successful always apparently... 2013-01-06 16:27:50 +01:00
Henrik Rydgard
c459c7e3a8 Fix the vsocp instruction. Fixes clipping bug in Fired Up. 2013-01-06 16:20:32 +01:00