Commit Graph

46 Commits

Author SHA1 Message Date
Ben Vanik
ec4f41fec4 Moving byte order/memory access to poly. 2014-07-17 19:20:17 -07:00
Ben Vanik
e9284dfaed More C++11ification. 2014-07-13 22:28:00 -07:00
Ben Vanik
9b78dd977b Migrating atomic ops to std::atomic where possible and poly. 2014-07-12 17:48:54 -07:00
Ben Vanik
bf882714d0 Cleaning up asserts and file/line macros. 2014-07-12 16:51:52 -07:00
Ben Vanik
1d54342930 Starting to cleanup includes a bit. Still a mess. 2014-07-11 18:03:35 -07:00
Ben Vanik
6486e0a48e Profiler skeleton. 2014-05-27 22:54:40 -07:00
Shawn Hoffman
1e196df4b3 Fix spelling of GetLogicalProcessorInformation in GetProcAddress call - spelling actually matters here. 2014-03-28 21:48:20 -07:00
Ben Vanik
991e7d8ad3 Refactoring window stuff. Still needs some work. 2014-01-14 22:40:02 -08:00
Ben Vanik
6129e1eb7a Simplifying macros to fix VS' broken preprocessor. 2014-01-12 14:06:00 -08:00
Ben Vanik
7969349126 Fixing some shutdown code. 2014-01-02 18:58:44 -08:00
Ben Vanik
475ddc1fcf Breakpoint hits reaching all the way to UI.
Nasty json only hackery right now, but fixable to support other protocols.
2013-12-23 14:01:13 -08:00
Ben Vanik
da340891c4 Fixing sockets and response. 2013-12-21 11:52:48 -08:00
Ben Vanik
1461792289 Debugger now listens for connections and will only allow one at a time. 2013-12-19 10:08:25 -08:00
Ben Vanik
b5f5668f6d Sockets implementation for Windows, WebSockets client now working. 2013-12-16 22:43:03 -08:00
Ben Vanik
b7ffd46319 Massive refactoring of all code + audio skeleton.
This should make it easier to find files and (in the future) split things
up into separate libraries.
It also changes around emulator initialization to make it a little more
difficult to do things out of order and a little more sensible as to when
real init work happens.
Also adding a skeleton audio system/driver and reworking CPU register
access to be more extensible.
2013-10-23 20:42:24 -07:00
Ben Vanik
447ce90b7b MmQueryAddressProtect. 2013-10-22 23:34:24 -07:00
Ben Vanik
d9a55a5557 Zero memory on alloc. 2013-10-22 21:50:10 -07:00
Ben Vanik
d4e19eb583 Certain games seem to do GPU writeback here. 2013-10-22 21:05:32 -07:00
Ben Vanik
725cde55d4 Moving the physical heap up a bit to avoid overwriting 0x0. 2013-10-21 23:56:16 -07:00
Ben Vanik
f9dd0b0cb2 Allocate physical memory. 2013-10-21 19:28:25 -07:00
Ben Vanik
aa3e8d0332 Allocating things in a physical heap. Super wasteful right now. 2013-10-21 00:59:11 -07:00
gibbed
ea022c8dd3 That one byte is totally important. 2013-10-21 00:39:39 -07:00
Ben Vanik
ca208fa60a Rewrote memory manager to use a bunch of mapped views. 2013-10-20 23:19:57 -07:00
Ben Vanik
cddab7ffb0 Fixing free. 2013-10-20 15:28:00 -07:00
Ben Vanik
e919edfb33 Fix xe_memory_is_valid. 2013-10-20 13:47:58 -07:00
Ben Vanik
9f1d2f29c1 --heap_guard_pages=1 to add guard pages. 2013-10-20 13:42:34 -07:00
Ben Vanik
ca3f2f1367 Malloc inspect in release mode, too. 2013-10-20 12:46:28 -07:00
Ben Vanik
002400d071 Adding memory info dumping utility, use --log_heap. 2013-10-20 12:39:59 -07:00
Ben Vanik
b8edeba195 Actually aligning physical alloc requests. 2013-10-19 18:18:19 -07:00
Ben Vanik
1378fad3c0 Basic shader cache. 2013-10-11 21:45:20 -07:00
Ben Vanik
6e4fb87992 D3D11 window up and spinning. 2013-10-11 20:23:58 -07:00
Ben Vanik
ba16a0d847 Trying to setup writeback and add basic secondary command execution. 2013-06-01 03:08:31 -07:00
Ben Vanik
d53458023e Fixing/implementing static TLS entries. 2013-05-31 10:01:32 -07:00
Ben Vanik
6950b21424 Reworking the memory system to not commit 3gb and to properly alloc data.
Now only 512MB is committed on startup. Loaded XEXs are placed into their
required addresses in the 0x8... range. Kernel structures are allocated
from the normal heap like other data. There should no longer be any magical
pointers.
2013-05-29 21:00:55 -07:00
Ben Vanik
f78e7945d4 Fixing malloc alighment and duplicate calls to NtAllocateVirtualMemory. 2013-05-27 19:58:20 -07:00
Ben Vanik
7d93795c10 Fixing Windows compilation errors. 2013-05-19 09:29:31 -07:00
Ben Vanik
b018b6fe56 Broken, incomplete, but need to move forward with rewrite. 2013-04-21 12:34:20 -07:00
Ben Vanik
4987147055 Moving disasm functions to ppc/. 2013-03-30 02:01:33 -07:00
Ben Vanik
85bdbd24d1 In-progress work: refactoring PAL not to be instanced.
This removes a lot of useless passing around of the PAL object.
2013-03-29 05:07:32 -07:00
Ben Vanik
bfda368ab5 Compiling on linux. 2013-02-10 12:21:56 -08:00
Ben Vanik
3cae7ed714 Converting logging to ASCII and other Windows fixes. 2013-02-09 08:05:39 -08:00
Ben Vanik
338b890ef5 Fixing VC++ warnings and errors. 2013-02-08 22:07:38 -08:00
Ben Vanik
c1e2119db4 Moving socket stuff to core/.
Stubbed win32 methods.
2013-02-06 22:55:18 -08:00
Ben Vanik
7435a327f7 Windows compat fixes. 2013-02-06 10:04:34 -08:00
Ben Vanik
da23c00d31 Simple thread PAL type (until core/ is rewritten). 2013-02-06 02:44:15 -08:00
Ben Vanik
88431eadce Screw convention; moving include files alongside source files.
They now will show up in xcode/etc.
2013-02-06 02:19:50 -08:00