Commit Graph

4450 Commits

Author SHA1 Message Date
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
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
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
James Benton
5ff22a400f Fix OSLockMutex not looping to acquire lock 2015-07-14 07:59:27 -07:00
James Benton
241e4ace5b Fix wakeup thread 2015-07-14 07:59:06 -07:00
Brett Lawson
e4f5bd9284 Workaround for tail-call bug in JIT. 2015-07-10 00:55:46 -04:00
Brett Lawson
f5fc07bb8f Optimized a bunch of JIT generators. 2015-07-10 00:55:39 -04:00
Brett Lawson
81fdbcc754 Optimize JIT comparisons to avoid use of jumping. 2015-07-10 00:25:12 -04:00
James Benton
b32eae4104 Add LR to kernel call trace 2015-07-09 01:38:19 +01:00
James Benton
918044f3f4 Fix printing unsigned vs signed in disassemble. 2015-07-09 01:38:15 +01:00
James Benton
61ada6cbd7 Fix rlwX incorrect mask generation. 2015-07-09 01:38:11 +01:00
James Benton
2c66ad9eb8 Fix cntlzw.
__lzcnt is unsupported on many CPUs.
2015-07-09 01:38:07 +01:00
James Benton
dd6a6be894 Fix thread scheduling. 2015-07-09 16:17:03 +01:00
James Benton
fcc75403ec Stub GX2DrawDone 2015-07-09 16:17:02 +01:00
James Benton
bb316a16c4 Added support for returning KernelModules from OSDynload_Acquire.
Added OSDynload_FindExport
2015-07-09 16:17:02 +01:00
James Benton
fcb5de7949 Add erreula.rpl module and stubs 2015-07-09 16:17:02 +01:00
James Benton
46e9209340 Move to exjam/spdlog and add WiiU coreID & threadID to log messages. 2015-07-09 16:17:01 +01:00
James Benton
7657113b74 Fix be_val operator= 2015-07-09 16:17:01 +01:00
Brett Lawson
49f7860062 Fix bug in JIT for mulhwu. 2015-07-08 23:05:34 -04:00
James Benton
fb29fd607c Add nn_fp. 2015-07-08 22:17:11 +01:00
James Benton
12452015ec Add padscore_vpad 2015-07-08 22:16:57 +01:00
James Benton
874e4e1073 Stub GX2SetPixelSampler 2015-07-08 22:16:26 +01:00
James Benton
909ba52a21 Add FSDelClient, FSGetClientNum 2015-07-08 22:16:15 +01:00
James Benton
d6617f463c Stub some device functions 2015-07-08 22:16:02 +01:00
James Benton
7ac1baf976 Stub alarm functions 2015-07-08 22:15:27 +01:00
James Benton
690eb0636a Implement all the thread synchronisation objects for the new scheduler.
Event, fastmutex, messagequeue, mutex, condition, semaphore.
This also gets rid of the silly systemobject system, yay!
Add some stubs for Alarm, need interrupt support in our CPU to implement.
2015-07-08 22:10:35 +01:00
James Benton
0bb36ed6b1 Improve thread scheduling.
Now much closer in behaviour to WiiU.
2015-07-08 01:15:21 +01:00
James Benton
34d2045725 Add more operators for be_val 2015-07-08 01:15:20 +01:00
Brett Lawson
8ccdf9f2d9 Added commented forceJit statement. 2015-07-06 22:24:58 -03:00
Brett Lawson
eaa27520ca Fix options issue with --logfile. 2015-07-06 22:23:47 -03:00
Brett Lawson
396dedd8e2 Added description of x64 register usage. 2015-07-06 21:27:00 -04:00
Brett Lawson
9eedce7fcd Minorly optimize JIT multiply generation. (reverted from commit 0918b90bcb) 2015-07-06 03:13:16 -04:00
Brett Lawson
5b9ffd8f6e Fix JIT for stfiwx. 2015-07-06 00:00:50 -04:00
Brett Lawson
47e92bd0e3 Fix minor bug in rlw JIT. 2015-07-06 00:00:45 -04:00
Brett Lawson
0918b90bcb Minorly optimize JIT multiply generation. 2015-07-06 00:00:40 -04:00
Brett Lawson
980e673651 Implement more JIT conditions using fallback and properly implement mcrf
and mcrxr.
2015-07-06 00:00:31 -04:00
Brett Lawson
a8f07f65c8 Fix bug with JIT extsb, extsh condition flags. 2015-07-05 22:50:32 -04:00
Brett Lawson
a2e8a735d9 Implement a bunch of JIT integer instructions. 2015-07-05 22:47:09 -04:00