Drew DeVault
f74d1b2f99
Add climits include to clock.cc
2015-06-16 23:45:49 -06:00
Drew DeVault
39253cbb93
Add cstring include to xenia/base/string.h
2015-06-16 23:45:37 -06:00
Ben Vanik
e4c5522c84
Merge pull request #261 from SirCmpwn/fix-std-mem
...
Add missing includes for cstring
2015-06-16 22:19:19 -07:00
Drew DeVault
a064ba053e
Add missing includes for cstring
2015-06-16 23:16:18 -06:00
Ben Vanik
b750370759
Partial thread data plumbing.
2015-06-16 21:53:40 -07: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
75206149ab
KeInitializeEvent.
2015-06-16 20:41:26 -05: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
Dr. Chat
23c7273481
Use F11 to fullscreen instead
2015-06-14 12:02:52 -05:00
Dr. Chat
cec2e2b397
Fullscreen support with F6
2015-06-14 11:47:50 -05:00
gibbed
95afbe2d93
Don't allocate memory for TLS slots, and copy the default TLS data at the start, rather than offset by the TLS slot size, which seems to be more correct.
2015-06-14 03:50:45 -05: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
gibbed
734b1a7be9
Fixed byte_offset in NtReadFile debug log.
2015-06-13 09:00:26 -05:00
gibbed
3a093d4c84
Fixed comment.
2015-06-13 08:59:52 -05:00
Dr. Chat
9376ed3f01
Whoops
2015-06-13 00:33:24 -05:00
Dr. Chat
3e7870fb39
Make SetNativePointer setup the guest pointer
2015-06-12 22:46:19 -05:00
Dr. Chat
4e74db8e51
Add the dispatch header to X_SEMAPHORE
2015-06-12 22:43:37 -05:00
Dr. Chat
3bd5dc011c
Free the object creation info on destruction
2015-06-12 21:35:49 -05:00
Dr. Chat
b7aabd7860
XSemaphore now calls CreateNative
2015-06-12 21:31:00 -05:00
Dr. Chat
bdcadeffe5
XObject CreateNative
2015-06-12 21:30:32 -05:00
Dr. Chat
a0a8b7ec37
Add X_OBJECT_HEADER and X_OBJECT_CREATE_INFORMATION
2015-06-12 19:48:24 -05:00
Dr. Chat
f96657ef7c
Fixup DISPATCH_HEADER type_flags to its parts
2015-06-12 19:47:28 -05:00
Dr. Chat
4c9cab4346
Make XThread create a kernel object for itself
2015-06-12 19:02:17 -05:00
Dr. Chat
864e257474
DISPATCH_HEADER -> X_DISPATCH_HEADER
2015-06-12 18:59:08 -05: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
8ca2b17e51
Doc headers.
2015-06-10 23:31:32 -07:00
gibbed
6348c3dc72
Changed a hardcoded value to something slightly more reasonable until we can calculate the correct value.
2015-06-10 23:48:51 -05:00
gibbed
1c37c14fc8
Cleaned up MmQueryStatistics.
2015-06-10 21:53:47 -05:00
gibbed
dc371009d9
Renamed handle_ to native_handle_ in some places where it makes more sense.
2015-06-10 21:24:54 -05:00
Ben Vanik
cabf9d6261
Adding some GPU docs and creating output directories automatically.
2015-06-10 19:20:14 -07:00
Dr. Chat
feba4f03a2
ResolvePath check for fully qualified paths
2015-06-10 19:09:33 -05:00
Dr. Chat
bc0fb19005
Swap main device to harddisk0
2015-06-10 19:08:58 -05: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
56a4620cdf
Switching StringBuffer to use a raw pointer.
2015-06-10 00:24:17 -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
Dr. Chat
60cf80d85c
Actually give the game the new handle
2015-06-09 19:04:41 -05:00
Dr. Chat
41f1023549
Minor fix in XThread - checking the wrong address for NULL
2015-06-09 18:58:45 -05:00
Dr. Chat
72a641efac
Fix up NtDuplicateObject
2015-06-09 18:58:21 -05:00
Dr. Chat
3627418e0e
Object table handle duplication
2015-06-09 18:58:02 -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
9d7d6df476
Bail on invalid heap lookups.
2015-06-08 17:49:54 -07:00
Ben Vanik
52b8f4b54b
Removing memory reservation value check for load/store.
2015-06-07 21:57:44 -07:00
Ben Vanik
00b3b0eab9
Adding assertion to RtlImageXexHeaderField + fixing return (maybe).
2015-06-07 21:51:19 -07:00
gibbed
1d37df29cb
Untested implementation of MmCreateKernelStack and stub of MmDeleteKernelStack.
2015-06-07 22:28:06 -05:00
Ben Vanik
cd62d4e461
PACK to 2101010.
2015-06-07 19:44:19 -07:00
gibbed
98e14fcb1b
Hack for KeWaitForSingleObject when games pass in object handles.
2015-06-07 21:08:16 -05:00
gibbed
7f57867f49
Let's fix the strange stack overflows doing the stupid thing.
2015-06-07 18:29:09 -05:00
gibbed
b9087e0698
This appears to be better?
2015-06-07 18:17:09 -05:00
Ben Vanik
ba88955be4
vsnprintf return is dumb.
2015-06-07 16:13:05 -07:00
Ben Vanik
a446d9c64a
No need for thread-local shader translator as all reqs come from GPU CP.
2015-06-07 16:13:04 -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
gibbed
0fb9161a1b
Putting the user_index == 255 check back into XamUserReadProfileSettings.
2015-06-07 04:51:50 -05:00
gibbed
cbd1210337
Handle a NULL playlist name pointer when creating title playlist.
2015-06-07 01:46:57 -05:00
Ben Vanik
f0492dfbb0
Looks like this is used to query rather than read sometimes.
2015-06-06 23:00:17 -07:00
Ben Vanik
58324352ae
Stubbed color format.
2015-06-06 22:57:15 -07:00
Ben Vanik
6edf4f898f
Gracefully skipping noaccess constant loads.
2015-06-06 22:56:53 -07:00
Dr. Chat
14b14f4309
XnAddrStatus enum and XNADDR struct
2015-06-06 21:20:20 -05:00
Dr. Chat
0c61244e91
Fix XNetGetDebugXnAddr signature
2015-06-06 19:19:13 -05:00
Dr. Chat
6e0732b95b
NetDll argument 0 is a caller ID
2015-06-06 19:17:26 -05:00
gibbed
cc79934fee
Added k_16_16_16_16.
2015-06-06 18:10:17 -05: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
Dr. Chat
35ad3c0f1f
DebugPrint to debugger util function
2015-06-06 00:48:28 -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
a52fcf0157
Merge pull request #244 from DrChat/sector_info_stub
...
Sector info stub
2015-06-05 17:36:50 -07:00
gibbed
b14ca702d1
Initialize process_type properly.
2015-06-05 19:21:52 -05:00
Dr. Chat
3b913844f0
File sector information stub
2015-06-05 19:06:36 -05:00
Dr. Chat
5250f0ca3e
NtQueryInformationFile: Return X_STATUS_UNSUCCESSFUL on default cause
2015-06-05 18:58:39 -05:00
Dr. Chat
d9ff65c9a2
Change NtQueryInformationFile to new-style export
2015-06-05 18:54:47 -05:00
gibbed
1d02ce63d3
Cleaned up XamUserReadProfileSettings. Also fixed writing out pointers for
...
setting data, fixing issues with games trying to read from zero page after
reading profile settings.
2015-06-05 18:53:14 -05:00
gibbed
edf8d1a74d
Corrected comment.
2015-06-05 16:49:28 -05:00
gibbed
c1d3d62e2a
Changed the default license mask.
2015-06-05 16:17:09 -05:00
gibbed
dae8aa4386
Added --protect_zero command-line argument to protect page zero from read/writes.
2015-06-05 16:13:34 -05:00
sephiroth99
dd30330d18
gl4: fix usage of struct as input/output variables
...
Apparently, structs cannot be used as in/out variables. This causes
shader compile errors on AMD (nVidia doesn't seem to care I guess?).
Remove the structs and put each struct members as its own variable.
2015-06-05 00:11:23 -04:00
sephiroth99
1139a1b6ac
gl4: fix nullptr dereference in GL4Shader::CompileProgram
...
A nullptr dereference will occur when the disassembly string is not
found, which will obviously happen on AMD. Check for the condition and
if it is not found, put a message indicating so.
2015-06-04 23:52:47 -04:00
sephiroth99
48ed0cb903
gl4: fix glGetInteger of GL_SAMPLER_BINDING
...
GL_SAMPLER_BINDING returns a single value. On AMD drivers, using the
indexed version of glGetInteger to get that value causes a
GL_INVALID_ENUM error. Use the non-indexed version.
2015-06-04 23:32:37 -04:00
Ben Vanik
232c35b89e
Use the right sizes. Nice catch DrChat.
2015-06-04 20:06:49 -07:00
Ben Vanik
bc9652e671
Actually fixing the off by one in log buffer size.
2015-06-04 20:04:39 -07:00
Ben Vanik
d3ddf0e718
Make the log buffer stupid large.
2015-06-04 19:58:26 -07:00
Ben Vanik
53527bef17
Fixing heap frees.
2015-06-04 19:18:00 -07:00
Ben Vanik
52060af847
Best-guess process info block.
2015-06-04 17:46:00 -07:00
Ben Vanik
f9742cc3eb
Fixing formatting.
2015-06-04 16:56:42 -07:00
Ben Vanik
21474970b2
Fixing (or at least improving) TLS.
2015-06-04 16:51:53 -07:00
Ben Vanik
319402a11a
Re-allow writes to 0. No clue why, but everything does it.
2015-06-04 16:37:17 -07:00
Dr. Chat
abacf136a0
Protect page 0 with no access
2015-06-04 16:21:38 -05:00
Dr. Chat
88672eff4f
InterlockedFlushSList and rewrote InterlockedPopEntrySList
2015-06-04 16:21:25 -05:00
Dr. Chat
4f807a669c
Fix TLS copying (size may still be wrong though)
2015-06-04 16:20:52 -05:00
Ben Vanik
7abed0a033
Merge pull request #241 from DrChat/audio_decoding
...
Hookup libav logging
2015-06-04 07:58:22 -07:00
Dr. Chat
23ae1b6297
Hookup libav logging
2015-06-04 02:10:56 -05:00
Dr. Chat
0bc08d80ef
NtCreateIoCompletion stub
2015-06-04 01:06:39 -05:00
Ben Vanik
bba530f628
Pre-sizing export tables.
2015-06-03 22:40:23 -07:00
Ben Vanik
b6728ce23e
Removing additional varargs trampoline in shader translator.
2015-06-03 22:34:58 -07:00
Ben Vanik
a9e2ba16fb
Optimizing page allocation (still shit) and adding MmSetAddressProtect.
2015-06-03 21:24:09 -07:00
Ben Vanik
50813d3ffa
NetDll_XNetGetDebugXnAddr stub.
2015-06-03 20:45:05 -07:00
Dr. Chat
809c327041
Emulate PACK/UNPACK for non-F16C CPUs
2015-06-03 22:33:45 -05:00
Ben Vanik
b8d1d3cf35
Stub for avatar stuff to make it immediately bail.
2015-06-03 18:29:44 -07:00
Ben Vanik
36dc6dd864
Logging APC delivery.
2015-06-03 17:59:36 -07:00
Ben Vanik
1e0c8e223d
Merge pull request #238 from DrChat/size_fix
...
Resize main window after attaching the menu
2015-06-03 11:00:50 -07:00
Dr. Chat
94a075d581
Resize main window after attaching the menu
2015-06-03 12:59:36 -05:00
Ben Vanik
08fc703b73
Merge pull request #237 from DrChat/audio_decoding
...
Cleanup Audio System Code
2015-06-03 09:16:07 -07:00
Dr. Chat
826609cd60
Cleanup some audio system code.
2015-06-03 11:14:10 -05:00
gibbed
60daa978dd
VdSwap has 10 arguments.
2015-06-03 10:37:59 -05:00
gibbed
c467024ec8
Packet building helpers.
2015-06-03 10:36:37 -05:00
gibbed
5cfdec7dbf
Fix a comment.
2015-06-03 09:50:13 -05:00
Ben Vanik
954b67df78
Adding readback color format.
2015-06-02 22:46:53 -07:00
Ben Vanik
7f62e8a86d
Fixing notification dequeing.
2015-06-02 22:13:17 -07:00
Ben Vanik
e186fcaf0d
Fixing end_of_file and allocation_size, some wildcard stuff, etc.
2015-06-02 22:13:16 -07:00
Dr. Chat
b448d794c5
xboxkrnl SHA crypt stubs
2015-06-03 00:06:33 -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
Dr. Chat
50d8017ac5
Whoops - fix overflowing on output audio samples
2015-06-02 13:17:15 -05:00
Dr. Chat
e09ea50c74
.cpp -> .cc and add ring_buffer.cc to the project
2015-06-02 11:23:04 -05:00
gibbed
6d61d0a7b2
Added _snprintf and swprintf.
2015-06-02 10:42:10 -05:00
gibbed
58b1059a23
Reordered the formatting exports in the order of their ordinal.
2015-06-02 10:42:09 -05:00
gibbed
b402fb76e1
Oops.
2015-06-02 10:42:08 -05:00
gibbed
065f0417f2
Fixed vsnprintf behavior when count < 0.
2015-06-02 10:42:08 -05:00
Ben Vanik
99718fd3ce
Merge pull request #233 from DrChat/audio_decoding
...
Cleanup Audio System Code
2015-06-02 08:22:10 -07:00
Dr. Chat
8c1e476bab
Restylizing.
2015-06-02 10:18:45 -05:00
Dr. Chat
e20aa16b59
Cleanup audio system code
2015-06-02 10:12:13 -05:00
Dr. Chat
ad8918f326
RingBuffer util class
2015-06-02 10:11:59 -05:00
gibbed
2a40512b74
Made a proper command-line flag out of disabling GL context resetting. --disable_gl_context_reset
2015-06-02 09:09:51 -05:00
Ben Vanik
c516447ae1
Misc stubs.
2015-06-02 00:14:24 -07:00
Ben Vanik
7525b840db
Making Rick happy ;)
2015-06-01 23:41:17 -07:00