James Benton
4a76b302a8
loader: Do not handle relocations for export / import / symtab sections.
...
We already relocate them manually in processImports, processExports and
processSymbols.
2017-09-28 17:32:27 +01:00
James Benton
ab8bd340cf
loader: Do not use virtual loader heap during loading.
...
Our virtual loader heap is stealing from IOS memory heap locations, so I
need to remove the loader heap.
On a console they have a small loader heap and the loader only reads
chunks at a time to prevent filling the heap. Our loader is loading
everything at the same time which is why we expanded the loader heap to
be so large.
2017-09-28 12:02:41 +01:00
James Benton
8ca59e9747
cpu: Fix BigEndianValue operator bool
2017-09-20 16:24:40 +01:00
James Benton
fee19a5124
Revert "Start of new IOS emulation."
...
This was not meant to be committed to master.
This reverts commit 9eb1b3dbfb .
2017-09-20 16:22:42 +01:00
James Benton
9eb1b3dbfb
Start of new IOS emulation.
2017-09-19 21:02:25 +01:00
James Benton
24f77c3994
common: Rename enumAsString to to_string.
...
More consistent with std::to_string and fmt::to_string.
2017-09-19 16:00:13 +01:00
James Benton
1308cabdc5
Change from implementing ostream<< to format_arg for fmtlib user types.
...
ostream operator<< always assumes no formatting, format_arg can properly
apply the specified formatting.
2017-09-19 15:42:29 +01:00
James Benton
df9d56aaa1
common: Do not print message when reserveMemory fails.
...
Failure is expected - this confuses users.
2017-09-19 12:40:33 +01:00
James Benton
3696f6ea11
Add MEM0, SRAM0 and SRAM1 memory.
2017-09-19 12:40:32 +01:00
James Benton
4c3688710f
cpu: Fix Pointer operators for Pointer<void>
2017-09-19 12:40:30 +01:00
James Benton
5df7be9432
cpu: Fix BigEndianValue opreator++ and operator--.
2017-09-19 12:40:29 +01:00
James Benton
96579a30d8
common: Change strutils begins_with and ends_with to take a string_view.
2017-09-19 12:40:28 +01:00
James Benton
1a8ade6f6f
cpu: Use is_convertible as well as is_constructible for BigEndianValue.
2017-09-19 12:40:27 +01:00
James Benton
5cd4d30fd5
gpu: Use constexpr if for drawPrimitives2.
2017-09-19 12:40:26 +01:00
James Benton
eefdbf58cb
gpu: Fix size_t -> gl::GLsizei cast.
2017-09-19 12:40:25 +01:00
James Benton
d6667a96f5
interpreter: Use if constexpr.
2017-09-19 12:40:24 +01:00
James Benton
7b7fc475cc
Add ostream operators for common/enum, Address, BigEndianValue, Pointer.
...
These are used by fmt for string formatting.
2017-09-19 12:40:23 +01:00
James Benton
bf45679dee
Fix spdlog sinks.
2017-09-19 12:37:14 +01:00
James Benton
1793c456de
Add libraries/fmt.
...
Move spdlog to use external fmt rather than packaged fmt.
2017-09-19 11:54:12 +01:00
James Benton
35225dcf5e
coreinit: Fix indent.
2017-09-19 11:54:12 +01:00
James Benton
78ea6752c7
cpu: Change be2_struct and pointer to use protected rather than private.
...
For ios_stackobject.
2017-09-19 11:54:12 +01:00
James Benton
0780490be5
cpu: Fix splelling in be2_struct.
2017-09-19 11:54:12 +01:00
James Benton
5ab4ce1e27
Some minor formatting changes.
2017-09-19 11:54:12 +01:00
James Benton
2f411181c4
cpu: Add phys_cast.
...
Basically reinterpret_cast for phys_ptr.
2017-09-19 11:54:12 +01:00
James Benton
05379ebba3
common: Add align_check.
2017-09-19 11:54:12 +01:00
James Benton
5b81575477
Change the fallback system fonts to the fonts created by rajkosto.
...
They are based off of Noto Sans CJK with custom glyphs for the Wii U
special icons.
Remove the Source Sans Pro font we were previously using for this.
2017-09-19 11:54:12 +01:00
James Benton
f159a0080b
Remove be struct operator& in favour of explicit virt_addrof and phys_addrof.
...
This resolves ambiguity when using be_ values in physical memory rather than
in virtual memory.
2017-09-19 11:54:12 +01:00
James Benton
ee622a2500
gx2: Fix oopsy in gx2 -> gfd code.
2017-09-19 11:54:12 +01:00
James Benton
d4520c25a8
libgpu: Catch translate_exception as a reference.
2017-09-19 11:54:12 +01:00
James Benton
65cd9af580
filesystem: Initialise FolderEntry::size to 0.
2017-09-19 11:54:12 +01:00
Yannik Marchand
8a59bf8def
Update jit_binrec.cpp
2017-09-15 08:33:55 +01:00
Yannik Marchand
10eeebd1d6
Allocate variable on ppc stack instead of host stack in coreinit_im.cpp
2017-09-11 13:57:59 +01:00
Yannik Marchand
dd639d9785
Add locked cache to MemoryMap::mapMemory
2017-09-11 08:53:57 +01:00
James Benton
9ea4708e1d
libdecaf: Move ios code out of kernel to new ios subdirectory.
...
We need to distinguish between the PPC kernel, IOS, and IOS_KERNEL!!
2017-06-27 01:01:34 +01:00
James Benton
b499500301
cpu: Move LockedCache to its own physical memory.
2017-06-27 01:01:25 +01:00
James Benton
c47dfec1b7
cpu: Improve implicit conversion constructors for Pointer.
2017-06-27 01:01:15 +01:00
James Benton
cb2f53ccaf
coreinit: Add missing include to coreinit_im
2017-06-27 00:08:02 +01:00
James Benton
62f2210a44
cpu: Add Pointer constructor for a be_val<address_type>.
...
Helps to clarify some implicit cast scenarios.
Maybe we should use some explicit constructors instead to fix this shit.
2017-06-27 00:07:52 +01:00
James Benton
135aaa688b
coreinit: Fix compile errors in coreinit_userconfig
2017-06-26 23:54:55 +01:00
James Benton
be586d1ed8
coreinit: Fix warning for comparing IMError and IOSError.
2017-06-26 23:38:56 +01:00
Michael DeGuzis
65acb72683
fix build on Debian 8 / Clang 5.0 [credit: VelocityRa]
2017-06-26 23:33:11 +01:00
James Benton
00bba0defc
ios/usr_cfg: Always save XML in UTF8.
2017-06-26 23:26:39 +01:00
James Benton
39b424af71
ios/usr_cfg: Fix setting of node values.
...
Had to use .text, not .value.
2017-06-26 23:26:38 +01:00
James Benton
2fa59e7138
ios/usr_cfg: Fix access attribute.
2017-06-26 23:26:37 +01:00
James Benton
219314bf7f
coreinit: Fix user config settings with dataSize = 0.
2017-06-26 23:26:36 +01:00
James Benton
17b91113f7
coreinit: Fix IOS_Ioctlv with null vectors.
2017-06-26 23:26:35 +01:00
James Benton
c9aa7da32e
kernel: Initialise default system config if not found.
2017-06-26 23:26:34 +01:00
James Benton
ce83030f78
coreinit: Fix IM_GetParameter setting wrong request parameter.
2017-06-26 23:26:33 +01:00
James Benton
85ed563835
coreinit: Fix return code check from IOS_Open in coreinit_im.
2017-06-26 23:26:32 +01:00
James Benton
f73311dd36
usr_cfg: Implement ReadSysConfig, WriteSysConfig ioctlv.
2017-06-26 23:26:30 +01:00