Commit Graph

177 Commits

Author SHA1 Message Date
Andrew Church
9b58729d2f Store configuration files in a platform-standard directory.
Not yet implemented for Windows.
2016-07-16 12:05:22 +01:00
Brett Lawson
2926d10bb6 Move the loader back into kernel-space.
This also cleans up some of our memory heap management,
as well as the behaviour of app startup.
2016-07-12 17:02:15 -07:00
Andrew Church
c7b9fec16a Inform Valgrind about fiber stacks on POSIX platforms.
Without this, Valgrind spews errors on accesses to the Fiber structure.
Also add a CMake configuration variable (DECAF_VALGRIND, default off)
so the code can still be built without Valgrind installed.
2016-07-12 03:37:26 +09:00
James Benton
b0cfc4ccf3 common: Always include assert expression in output. 2016-07-10 02:24:38 +01:00
James Benton
8514a99944 Improve error messages by introducing decaf_assert.h 2016-07-10 01:38:42 +01:00
Brett Lawson
89dcf8e571 Fix fastregionmap to avoid leaking memory when it is cleared. 2016-07-08 01:25:00 -07:00
James Benton
3998d622dc common: Remove #pragma optimize. 2016-07-06 01:31:36 +01:00
Brett Lawson
b4d7283423 Fix stack tracing to not be broken. 2016-07-06 02:22:33 -07:00
James Benton
0af83202f3 common: Add enum helper macros. 2016-07-05 19:19:45 +01:00
Brett Lawson
61b7cdf6b7 Update debuggable bitfield to be slightly less hacky. 2016-07-04 23:26:37 -07:00
Brett Lawson
7f529f06d7 Refactored bitfields to allow debugger inspection. 2016-07-04 16:50:46 -07:00
Andrew Church
37e4646671 Fix Linux build.
- Add missing #include <cstdlib> for malloc().
- Add missing diagnosic pragma for GCC/Clang.
- Fix ambiguous lambda signature.
2016-06-28 00:28:05 +09:00
James Benton
2016d1d78b Formatting. 2016-06-26 22:31:43 +01:00
Brett Lawson
ece258aa56 Added some host stack tracing functionality to libcommon. 2016-06-25 04:16:24 -07:00
ImaProgrammer
c87cfc34c4 Changed NULL in FiberEntryPoint to nullptr 2016-06-24 22:47:36 +12:00
Brett Lawson
e46494e044 Use memory hashing to decide whether to reupload a texture to GPU. 2016-06-23 03:43:09 -07:00
Brett Lawson
8ecc9b2f6e Fix OFFSET warnings for GCC builds. 2016-06-17 04:11:11 -07:00
James Benton
dd236e55fe common: Fix typo of PROT_EXEC in platform_posix_memory. 2016-06-14 00:38:46 +01:00
James Benton
8533d98b88 common: Fix some missing includes. 2016-06-14 00:38:39 +01:00
James Benton
49ce6b2df2 cmake: Update CMakeLists to use GLOB_RECURSE.
We do not develop with CMakeLists as our primary platform, it makes it too
hard to maintain the file list in CMakeLists.

GLOB_RECURSE will have to do for now.
2016-06-14 00:38:37 +01:00
Brett Lawson
2ccec31e9e Use virtual memory instead of memory mapped file APIs.
This gives us better control of the protection attributes of
the memory that we are allocating.  Note that the mem::protect
method is no longer needed as reserved pages are not granted
any access permissions by default.
2016-06-14 00:56:47 -07:00
James Benton
a8ff5e00a8 Initial folder restructuring. 2016-06-13 13:03:01 +01:00
James Benton
cb7592d1a6 cmake: Add missing fastregionmap.h to common lib. 2016-06-12 12:53:33 +01:00
Brett Lawson
5ae583ba3a Update JIT to only JIT basic blocks.
This also fixes it as it was previously broken.
2016-06-08 02:33:23 -07:00
James Benton
4f654fa2d9 cmake: Fix CMakeLists. 2016-06-06 00:32:41 +01:00
Brett Lawson
4884b9fe21 Drop memory_translate and memory_untranslate.
Long ago they became just simple forwarder functions as
cpu/mem.h got simplified to provide essentially the same
interface.
2016-06-06 02:26:14 -07:00
Brett Lawson
0027d65f56 Move utils/ to decaf-common project.
This also moved wfunc_ptr.h and wfunc_call.h to the
ppctypes folder instead of common.
2016-06-06 02:13:12 -07:00