Commit Graph

585 Commits

Author SHA1 Message Date
Dr. Chat 0211135fd6 Fix potential corruption for GetOptHeader 2015-07-03 10:41:43 -05:00
Dr. Chat 362a521c79 Rewrite XexModule to drop dependency on old xex2 headers for imports 2015-07-03 08:17:23 -05:00
Dr. Chat 029babaf5d Drop dependency on old-style xex2 headers 2015-07-03 08:15:53 -05:00
Dr. Chat fe87c08424 Shuffle some code around. 2015-07-03 08:15:53 -05:00
Ben Vanik dec0d12cc9 Replacing includes of windows headers with base/platform.h. 2015-07-01 09:02:04 -07:00
Ben Vanik 1106029afc _wfopen -> xe::filesystem::OpenFile.
Progress on #305.
2015-06-28 17:33:46 -07:00
Ben Vanik e05cc3ba37 x64_sequences can now be run through clang-format.
Progress on #291.
2015-06-28 15:04:24 -07:00
Ben Vanik 5ca8caa9a7 Allowing thread stacks from the entire 0x4-0x7 range. 2015-06-28 14:34:11 -07:00
Ben Vanik 0359184bc0 Simplifying the sequences code to start refactoring.
Progress on #291.
2015-06-28 12:01:47 -07:00
Ben Vanik 0630b524fa Removing unused HIR opcodes.
Progress on #291.
2015-06-28 12:01:46 -07:00
Ben Vanik 3745746fcc Shuffling around thunk emitter.
Progress on #291.
2015-06-28 12:01:45 -07:00
Ben Vanik 5e950cb066 Fixing VS intellisense for xbyak.
Progress on #291.
2015-06-28 12:01:45 -07:00
Ben Vanik 8c69a4df09 Cleaning up apu/ and renaming -private files to _flags.
Part of #296.
2015-06-27 11:25:56 -07:00
Ben Vanik 3439641101 Removing cpu.h.
Part of #296.
2015-06-27 08:58:45 -07:00
Ben Vanik 12120262b8 Adding non-win8 API for unwind info, but it doesn't work :/
Working on #295.
2015-06-26 21:50:32 -07:00
Lioncash 23352f3419 xex_module: Fix formatting arguments
These take a const char* not a std::string.
2015-06-25 12:48:41 -04:00
Ben Vanik d335555277 Manually page align address range for write watch. 2015-06-23 17:37:09 -07:00
Ben Vanik fb1f4906d9 xb format --all (we are now format clean). Buildbot will yell at you. 2015-06-22 22:26:51 -07:00
Ben Vanik fb591cbadb Disabling use of FMA until I can figure out the rounding issues. 2015-06-20 11:21:32 -07:00
Ben Vanik 03f2d26afd Fixing tests with no debugger attached. 2015-06-19 21:53:49 -07:00
Drew DeVault a064ba053e Add missing includes for cstring 2015-06-16 23:16:18 -06:00
Ben Vanik aae45515ae Preserving HIR disasm when the debugger is attached. 2015-06-16 21:04:18 -07:00
Ben Vanik 165d49ad3a Moving PPC disasm to on-demand in debugger. 2015-06-16 20:18:48 -07:00
Ben Vanik 5f33087a12 Adding mmap for code cache and exposing cache properties. 2015-06-16 20:13:39 -07:00
Ben Vanik c34db170f5 Adding fallback for pre-MOVBE-supporting processors. 2015-06-16 20:06:50 -07:00
gibbed 54a7b8c591 Assert symbol_info is not null in X64Emitter::Call. 2015-06-16 20:41:25 -05:00
Ben Vanik b9c341ebef Yell at the user when they have an unsupported CPU. 2015-06-16 17:46:41 -07:00
Ben Vanik 51eeb4f039 Using upstream xbyak movbe. 2015-06-15 20:44:13 -07:00
Ben Vanik 2a6ada2a3c Optimization to merge LOAD+SWAP and SWAP+STORE into flagged opcodes. 2015-06-15 18:59:29 -07:00
Ben Vanik ddaf08ca8d Adding flag to make LOAD/STORE also perform a byte swap. 2015-06-15 18:59:28 -07:00
Ben Vanik 0ffd8bbedd Place all XMM constants in memory so we can avoid clobbering rax. 2015-06-15 18:59:27 -07:00
Ben Vanik edaebbf00f Adding call address assert. 2015-06-14 00:09:58 -07:00
gibbed c949c1d303 Support src1 and src2 being a constant in OPCODE_EXTRACT. 2015-06-14 02:08:41 -05:00
Ben Vanik 3870dabcee Replacing LoadZero and LoadConstant with explicit types. 2015-06-13 23:42:38 -07:00
Ben Vanik 6d4d1db310 Example of Capstone for both libxenia and the UI. Going to shuffle around. 2015-06-10 23:31:33 -07:00
Ben Vanik 9c58426231 Speeding up source map lookup for x64 disasm. 2015-06-10 00:29:07 -07:00
Ben Vanik 14e1438ec0 Dramatically speeding up HIR comments. 2015-06-10 00:28:02 -07:00
Ben Vanik 070d34cd02 Fiddling with function data. 2015-06-09 22:01:01 -07:00
Ben Vanik d482885378 Debugger can pause/resume threads. 2015-06-09 20:14:35 -07:00
Ben Vanik 8dc20eb5cd Scaling audio playback frequency with clock time scaling. 2015-06-09 20:14:33 -07:00
gibbed 38c85084ff Tests for vsl. 2015-06-09 19:56:26 -05:00
gibbed e5c4590ecf Few more tests for vsr. 2015-06-09 19:56:12 -05:00
gibbed 6d933c18f7 SHL_V128. 2015-06-09 19:55:54 -05:00
Ben Vanik f0c47e036b Fixing SHR_V128. 2015-06-09 17:42:09 -07:00
gibbed 114409ea2f Test for vsr. 2015-06-09 19:31:44 -05:00
Ben Vanik dbcdc5b543 Function lookup is slow - replacing with a faster test. 2015-06-08 23:44:38 -07:00
Ben Vanik 1a2b4a38e0 Fixing spurious function declarations. 2015-06-08 23:37:51 -07:00
Ben Vanik 573f190a43 Adding modules/functions to the debugger. 2015-06-08 23:22:25 -07:00
Ben Vanik 52b8f4b54b Removing memory reservation value check for load/store. 2015-06-07 21:57:44 -07:00
Ben Vanik cd62d4e461 PACK to 2101010. 2015-06-07 19:44:19 -07:00
gibbed 4a796627f2 Added --break_condition_gpr, --break_condition_value, --break_condition_truncate for use with --break_on_instruction. 2015-06-07 17:50:43 -05:00
Ben Vanik 889f29c18a Fixing CFG to remove unreachable blocks and properly maintain dominators. 2015-06-07 15:14:14 -07:00
Ben Vanik 10e8d0bd9b Fixing constant comparison. 2015-06-07 11:42:20 -07:00
Ben Vanik 338456f7e4 Adding missing test files. 2015-06-07 11:22:42 -07:00
gibbed 0772eec4b1 Fixing branches to the test function in the jumptable constants test. 2015-06-07 13:15:36 -05:00
gibbed 32ca1d1953 @ha @h. 2015-06-07 12:52:16 -05:00
gibbed be7900614b Basic tests for td, tdi, tw, twi. 2015-06-07 12:51:36 -05:00
gibbed 43b0cd6eae Added test reproducing an issue with constants, jumptables and traps. 2015-06-07 06:48:23 -05:00
Ben Vanik 6edf4f898f Gracefully skipping noaccess constant loads. 2015-06-06 22:56:53 -07:00
Ben Vanik 429698c2ec Replacing DidCarry with manual calculation and fixing compares. 2015-06-06 15:24:46 -07:00
Ben Vanik 6b52f6715a Adding tests for branch/carry and logging disasm on test failure. 2015-06-06 10:59:43 -07:00
Dr. Chat 4c3297441c Log debugprint traps to the debugger, if attached 2015-06-06 00:50:51 -05:00
gibbed 54e8868160 Some (hopefully correct) constant fixes for MUL_ADD_V128, MUL_SUB_V128, and SWIZZLE V128. Needs extra work on AVX2 side. 2015-06-05 23:29:31 -05:00
Ben Vanik a9e2ba16fb Optimizing page allocation (still shit) and adding MmSetAddressProtect. 2015-06-03 21:24:09 -07:00
Dr. Chat 809c327041 Emulate PACK/UNPACK for non-F16C CPUs 2015-06-03 22:33:45 -05:00
Ben Vanik 40a6a12800 Attempting to inline a lot of MMIO operations. Works for GPU stuff mainly. 2015-06-02 20:15:43 -07:00
Ben Vanik c516447ae1 Misc stubs. 2015-06-02 00:14:24 -07:00
Ben Vanik 19cb13692b Fixing undefined export names. 2015-06-01 22:12:11 -07:00
Ben Vanik 5c34b0a73e Fixing printfs and fixing exports. link.exe is too good. 2015-06-01 21:40:53 -07:00
Ben Vanik 23826fa957 Initial experiment with new kernel export format. 2015-06-01 18:19:42 -07:00
Ben Vanik ce3359389b Allow new-style export registration. 2015-05-31 17:54:44 -07:00
Ben Vanik 08770a4ec0 Mass renaming. I love clang-format. 2015-05-31 16:58:12 -07:00
Ben Vanik 9c3d2b54fb Cleanup before kernel export refactor. 2015-05-31 16:31:19 -07:00
Ben Vanik fccab79a7a Adding kernel state pointer to PPCContext. Still needs larger cleanup. 2015-05-31 14:35:56 -07:00
Ben Vanik d816d80190 StringBuffer cleanup. 2015-05-31 14:35:30 -07:00
Ben Vanik c97b462d8d Fix assert. 2015-05-30 18:04:31 -07:00
Ben Vanik d97a6d1929 NtReadFile APC, somewhat. 2015-05-29 21:24:23 -07:00
gibbed d1dbee2052 Consistency in memset calls. 2015-05-28 05:28:59 -05:00
Ben Vanik a93325434a Minor audio tweeks + profiling. 2015-05-28 00:19:17 -07:00
Ben Vanik 8244409501 Refactoring to enable future time scaling, coordinated clocks, etc. 2015-05-26 22:20:58 -07:00
Shawn Hoffman b6d51d86ee vs2015 supports constexpr 2015-05-26 14:25:45 -07:00
Ben Vanik dcb78cc640 Pretty sure I have mtmsrd wrong. This likely isn't correct. 2015-05-25 21:20:38 -07:00
Ben Vanik 41cee3d337 Switching vsync to custom thread. 2015-05-25 21:12:27 -07:00
gibbed f2685dbb1d Fixed SPLAT_F32 for non-AVX2 branch. 2015-05-25 14:32:38 -05:00
Ben Vanik 148c40554b Adding vmsum4fp128 test. 2015-05-25 12:28:32 -07:00
Ben Vanik c616104574 Tracing help. 2015-05-25 11:09:00 -07:00
Ben Vanik f5a2b85d42 Switching to xe::mutex. 2015-05-25 00:52:21 -07:00
Ben Vanik 1104f8e687 Header cleanups and prep. 2015-05-25 00:51:25 -07:00
Ben Vanik e55be7d2c9 Fleshing out debugger types. 2015-05-25 00:51:23 -07:00
Ben Vanik 576d6492dc Basic debugger networking. 2015-05-25 00:51:22 -07:00
gibbed 05081fa030 Fixed some constant loads. 2015-05-24 16:18:06 -05:00
gibbed 33d40bee95 More tests for rlwinm. 2015-05-24 12:32:23 -05:00
Riley Labrecque 23c91b2eff Remove test binaries now that they can be created on Windows 2015-05-24 01:23:14 -06:00
Dr. Chat a4b950f1e9 Fix vmaddfp test 2015-05-23 18:14:07 -05:00
Dr. Chat f7a8dc3748 Change OPCODE_SPLAT instructions from SSE->AVX 2015-05-23 17:27:26 -05:00
gibbed 8b7f6c8e0c Tests for vmaddfp. 2015-05-22 01:32:22 -05:00
gibbed c3082381c5 Tests for fmadds. 2015-05-22 01:31:50 -05:00
gibbed 45cd0e4f8f Adjustments to fmadd tests. 2015-05-22 01:30:44 -05:00
Ben Vanik bac3f8c3bd Fixing tests. 2015-05-21 07:51:56 -07:00
Ben Vanik fc4727c339 Changing calls/jmps to use the indirection table. Most games seem faster. 2015-05-21 00:12:28 -07:00