Commit graph

5222 commits

Author SHA1 Message Date
Brett Lawson
0ddd8d092b Cleaned up ppc type conversion headers. 2015-07-29 21:42:24 -04:00
Brett Lawson
a3c9932ae9 Update wfunc_ptr to support direct calling. 2015-07-29 19:24:06 -03:00
James Benton
a9cb6f32ed Fix uninitialised state->lr on new thread. 2015-07-29 22:34:08 +01:00
James Benton
98e18bdb80 Remove unused fiber member from ThreadState. 2015-07-29 22:33:44 +01:00
James Benton
b8aaf9c0b8 Store lr/nia in x64 stack rather than ppc.
Because its simpler!
2015-07-29 22:02:57 +01:00
Brett Lawson
f6a905c54d Fix wfunc_ptr stack storage to be correcter. 2015-07-29 17:36:27 -03:00
James Benton
7789f5c687 Implement zalloc and zfree callbacks. Fixes #17. 2015-07-29 21:32:58 +01:00
James Benton
68e2864a84 Brett pls \o/ 2015-07-29 21:32:58 +01:00
James Benton
8c80d6e494 Remove wfunc_ptr operator().
It's complicated...
2015-07-29 21:32:57 +01:00
James Benton
a4031ef835 Add support for void return type to ppcinvoke 2015-07-29 21:32:57 +01:00
Brett Lawson
a6ba1d6015 Update interpreter loop to be cia/nia based, use ppctypes for entrypoint setup. 2015-07-29 17:27:24 -03:00
Brett Lawson
87dec62bfa Update coreinit to use partial variadic function stuff. 2015-07-28 23:00:34 -04:00
Brett Lawson
781c0df8f7 Improved vararg function logging. 2015-07-28 22:55:09 -04:00
Brett Lawson
d7e6a328e6 Fix coreinit using 64-bits size_t instead of 32-bits. 2015-07-28 22:41:08 -04:00
Brett Lawson
381e9587b4 Improved C++ variadic function handling. 2015-07-29 15:24:27 -03:00
Brett Lawson
35651e5613 Improved CPP<->PPC calling system. 2015-07-29 15:24:27 -03:00
James
b8fdf6a68f Merge pull request #23 from zhuowei/patch-2
main: fix crash when log level not specified
2015-07-29 02:29:10 -07:00
zhuowei
9a28c0e6c0 main: fix crash when log level not specified
For some reason the default value isn't being picked up by docopt; manually check if value is not specified and default to trace
2015-07-28 19:10:12 -07:00
James
1a7eee67d5 Merge pull request #19 from zhuowei/log-config-and-coreinit-stubs
Log config
2015-07-28 17:40:12 -07:00
James Benton
4c629b0e4b Skip unimplemented OSSleepTicks. 2015-07-29 01:05:12 +01:00
James Benton
5163ba774e Update to release VS2015 solution version. 2015-07-29 00:57:46 +01:00
James Benton
fec9a5d1ce Fake FSReadFileASync with synchronous read.
This will all go very wrong if a game checks the async read status!
2015-07-29 00:57:46 +01:00
James
5e7f600e69 Merge pull request #22 from zhuowei/patch-1
interpreter: jit_fallback should use 64-bit mov for thread state
2015-07-28 16:51:27 -07:00
zhuowei
6d318424a1 interpreter: jit_fallback should use 64-bit mov for thread state
The threadState pointer may not fit in a 32-bit register
2015-07-28 16:34:15 -07:00
Zhuowei Zhang
35832e8b25 main: add command line parameters to enable async logging and change log
verbosity
2015-07-27 20:35:48 -07:00
James Benton
862f98cdf0 Implement COSWarn. 2015-07-26 23:58:38 +01:00
James Benton
b9928bce6b Implement FSGetPosFile 2015-07-26 23:58:26 +01:00
James Benton
22bf08c8bd Stub OSGetSharedData 2015-07-26 23:58:02 +01:00
James Benton
47039d40d3 Add some missing ErrEula functions. 2015-07-26 23:57:31 +01:00
James Benton
b394dce3a7 Fix optional arguments in OSGetForegroundBucket 2015-07-26 14:57:36 +01:00
James Benton
3f415e2b52 Fix stack pointer address.
Fixes the issue found in expheap with block header being overwritten.
2015-07-26 14:02:04 +01:00
James Benton
19ab2184d7 Add Memory Heap locking 2015-07-26 14:00:36 +01:00
James Benton
4751199b9f Fix OSUninterruptibleSpinLock calling OSTestThreadCancel 2015-07-26 13:58:22 +01:00
James
97127d9b08 Merge pull request #15 from zhuowei/zlib125patch
zlib125: implement inflateInit_, ignore custom allocators instead of asserting
2015-07-21 16:45:12 -07:00
James
cd4ce32bf8 Merge pull request #16 from zhuowei/fixtwocomparisonissues
Fix two comparison issues:
2015-07-21 16:44:46 -07:00
Zhuowei Zhang
8ba5d7416a Fix two comparison issues:
- filesystem misinterpret seek to offset 0 as a seek to the end
   of file
 - UserModule::findSection incorrectly returns the previous section if symbol is at
   beginning of section
2015-07-21 16:13:30 -07:00
Zhuowei Zhang
048c7c4476 zlib125: implement inflateInit_, ignore custom allocators instead of
asserting
2015-07-21 13:02:44 -07:00
James Benton
88d4d23bf9 Fix sda base to be the center of the sdata/sbss blocks.
For more info see:
http://cache.freescale.com/files/32bit/doc/ref_manual/E500ABIUG.pdf
http://www.freescale.com/files/32bit/doc/app_note/PPCEABI.pdf
2015-07-21 19:33:01 +01:00
James Benton
91da77dbb6 Fix Memory::alloc page count 2015-07-21 17:39:54 +01:00
Brett Lawson
8d837e7a7e Merge pull request #14 from zhuowei/newreloc
loader: add support for EMB_SDA21 relocations
2015-07-21 08:59:45 -03:00
Zhuowei Zhang
f1ae4f9fbd loader: add support for EMB_SDA21 relocations 2015-07-21 01:28:25 -07:00
James Benton
f23328a008 Add pragma once to processor.h 2015-07-17 16:30:14 -07:00
James Benton
c5c0deb9a8 Fix non-standard implicit cast. 2015-07-17 16:29:23 -07:00
James Benton
e6437f215c Fix non-standard undefined static const. 2015-07-17 16:29:03 -07:00
James Benton
16295eed7e Fix non-standard atomic_bool initialisation. 2015-07-17 16:27:32 -07:00
James Benton
44cd8db977 Remove goto 2015-07-17 16:27:05 -07:00
James Benton
c97f425991 Remove addr_t 2015-07-17 16:27:01 -07:00
James Benton
4c9e009725 Fix non-standard behaviour with some macros. 2015-07-17 16:26:10 -07:00
James Benton
8cc4746704 Add some extra logging to fiber scheduler. 2015-07-15 04:44:07 +01:00
James Benton
72edbdc183 Add a body to OSSleepTicks.
Doesn't actually work though as Alarms have not been implemented.
2015-07-15 04:38:03 +01:00