Ben Vanik
737a567de6
Fixing code_addr_low_.
2013-10-19 22:31:08 -07:00
Ben Vanik
889e586cab
Skeleton for new draw type and texture fetching.
2013-10-19 21:49:25 -07:00
Ben Vanik
bdf5bf20a4
vminfp/vmaxfp
2013-10-19 21:26:40 -07:00
Ben Vanik
2cce46c232
vsel/vsel128
2013-10-19 21:20:27 -07:00
Ben Vanik
d62e8aaf78
lhbrx/lwbrx/ldbrx/sthbrx/stwbrx/stdbrx
2013-10-19 21:05:06 -07:00
Ben Vanik
d60cf676c3
addmex
2013-10-19 20:57:24 -07:00
Ben Vanik
5b91ba89e9
Fixing stdux/stdx o_o
2013-10-19 20:57:19 -07:00
Ben Vanik
62b792c903
Ignoring a packet I don't care about.
2013-10-19 20:30:36 -07:00
Ben Vanik
7ae2d410e5
addex. All of these are wrong - let's hope we don't overflow.
2013-10-19 20:29:19 -07:00
Ben Vanik
4e6799197f
fsqrtx/fsqrtsx
2013-10-19 20:25:03 -07:00
Ben Vanik
e842a6614a
Fixing LR argument for indirect branches.
2013-10-19 19:59:09 -07:00
Ben Vanik
10c69cfaf2
rlwnmx
2013-10-19 19:07:26 -07:00
Ben Vanik
807b949fea
Seeing code returning to the execution thunk, something must have broken.
2013-10-19 19:03:47 -07:00
Ben Vanik
4a72010e5f
addcx
2013-10-19 19:03:30 -07:00
Ben Vanik
fc1be2bfd8
rldimix
2013-10-19 18:54:36 -07:00
Ben Vanik
14b1c860b9
subfmex/subfzex.
2013-10-19 18:33:32 -07:00
Ben Vanik
b8edeba195
Actually aligning physical alloc requests.
2013-10-19 18:18:19 -07:00
gibbed
49ee9d05b9
Fixed LR branching.
2013-10-19 17:09:48 -07:00
Ben Vanik
7b0ca71bfb
Fixing broken test.
2013-10-19 17:08:34 -07:00
Ben Vanik
68d5f33cfa
GPU byte swapping.
...
A lot of other packets likely do this.
2013-10-19 16:29:00 -07:00
gibbed
f15b5dae9d
I think this is right.
2013-10-19 15:07:59 -07:00
Ben Vanik
f7ad9c89dd
Messing with stvlx.
2013-10-19 14:36:32 -07:00
Ben Vanik
91e6c4ed9a
Adding address mask to stvlx.
2013-10-19 14:29:14 -07:00
Ben Vanik
31161e0245
SHUFPS_SWAP_DWORDS to make it easier to tell what it's doing.
2013-10-19 14:21:56 -07:00
Ben Vanik
5df538cd44
Adding stack alignment check. We aren't 16b aligned right now. Fuck.
2013-10-19 14:16:34 -07:00
Ben Vanik
007f7e371d
Workaround for yet another AsmJit bug. Sigh.
2013-10-19 12:50:42 -07:00
Ben Vanik
37065255a2
Dispatching interrupts.
2013-10-19 12:50:26 -07:00
Ben Vanik
90bc6ad1a8
Interrupts fire on the right 'thread', ringbuffer work,
2013-10-19 11:50:01 -07:00
Ben Vanik
6db8c6c961
Implementing thread state block access.
2013-10-19 02:53:14 -07:00
gibbed
32a0045001
This is probably better.
2013-10-19 01:18:18 -07:00
Ben Vanik
c60230f28a
Implementing scratch registers correctly (I think).
2013-10-19 01:16:13 -07:00
Ben Vanik
1616d7ba22
WAIT_MEM_REG, REG_RMW (untested), COND_WRITE
2013-10-19 00:46:35 -07:00
Ben Vanik
a63db2b7fd
Dispatch interrupt outside of main pump.
2013-10-19 00:46:11 -07:00
Ben Vanik
562c86f76d
Extending critical sections to spin forever for now.
2013-10-18 21:55:43 -07:00
Ben Vanik
01a94f3850
VdGetSystemCommandBuffer stub.
2013-10-18 21:39:29 -07:00
Ben Vanik
0746e6feb2
ldarx/lwarx/stdcx/stwcx. Probably.
2013-10-18 21:17:20 -07:00
Ben Vanik
f2550bd017
KeEnterCriticalRegion/KeLeaveCriticalRegion.
2013-10-18 19:49:51 -07:00
Ben Vanik
6a02ae3768
KfAcquireSpinLock/KfReleaesSpinLock.
2013-10-18 19:11:37 -07:00
Ben Vanik
28e7102a02
Always dump CPU info and assert our dummy thread value is legit.
2013-10-18 18:56:59 -07:00
Ben Vanik
d3665cc2e6
Support for VS2013 (and auto picking), a Win xb script, and readme updates.
...
This also removes the dependency on D3DX, which is only included in the
DXSDK, meaning that just the Win8+ SDK should be required now.
2013-10-17 23:35:54 -07:00
Ben Vanik
ff54a04aa1
asmjit fixes.
2013-10-17 14:03:26 -07:00
Ben Vanik
20720f750d
KeSetAffinityThread stub, Ob* fns added, current thread handled.
2013-10-17 00:47:02 -07:00
Ben Vanik
7bf6992203
NtSetEvent/NtWaitForSingleObjectEx.
2013-10-16 23:04:52 -07:00
Ben Vanik
1b12949dd2
NtQueryFullAttributesFile.
2013-10-16 22:41:31 -07:00
Ben Vanik
fd1054d823
NtSetInformationFile for seek position.
2013-10-16 22:28:26 -07:00
Ben Vanik
5de9b84904
Fixing line endings.
...
Need to run a script to do this...
2013-10-16 22:22:17 -07:00
Ben Vanik
a41827942e
Some NtQueryInformation classes.
2013-10-16 22:20:24 -07:00
gibbed
956496fb99
Added KeBugCheck and KeBugCheckEx.
2013-10-16 22:08:41 -07:00
Ben Vanik
ab1ba9a508
Partially implemented NtQueryFullAttributes.
...
Enough to get past the ShaderDump test most games seem to do.
2013-10-16 21:32:53 -07:00
Ben Vanik
c53db98517
Locking around some JIT stuff.
...
Excessive for now, but safer.
2013-10-16 21:32:20 -07:00
Ben Vanik
8e37fb8502
Bytes read via ReadFile!
2013-10-16 20:50:46 -07:00
Ben Vanik
fea5c06180
Fixing line endings.
2013-10-16 20:10:16 -07:00
Ben Vanik
ab5b9d75e0
Reworking file system so that it's easier to implement file operations.
2013-10-16 20:09:42 -07:00
gibbed
d5bd8b9d5b
Merge branch 'master' of https://github.com/benvanik/xenia
2013-10-16 19:05:04 -07:00
gibbed
16b0c936d4
Fixed argument size handling in _vsnprintf_shim, like DbgPrint_shim.
2013-10-16 19:04:23 -07:00
gibbed
46b42528fd
Fixed xeRtlFillMemoryUlong so it swaps the pattern back to native endianness.
2013-10-16 19:03:22 -07:00
gibbed
309d1621e5
Attempt at a fix for crashes occuring when not using instruction/branch tracing.
2013-10-16 18:55:21 -07:00
Ben Vanik
803e4998de
Starting to wire up readfile.
2013-10-16 00:23:05 -07:00
Ben Vanik
da2f7f1ea5
Shuffling filesystem to xboxkrnl.
...
This doesn't really change anything yet, just moves things.
Also fixed some bad over-including.
2013-10-15 23:09:51 -07:00
Ben Vanik
26c06e13d9
Checking in intermediate FS work before moving code.
2013-10-15 22:51:19 -07:00
Ben Vanik
a8d10cd9d3
NtClose/NtReadFile skeleton.
2013-10-15 22:28:00 -07:00
Ben Vanik
388f354870
Basic NtCreateFile.
2013-10-15 21:30:57 -07:00
Ben Vanik
f409795dd1
Fixing PM4 type 0 packet parsing.
2013-10-15 20:24:32 -07:00
gibbed
a483704855
Sneaky tabs.
2013-10-15 19:18:28 -07:00
gibbed
d79bd8cfa7
Renamed xboxkrnl_file* to xboxkrnl_nt*, added xboxkrnl_io*.
2013-10-15 19:18:03 -07:00
gibbed
f59ff2e44a
Fixed debug output format for NtCreateFile.
2013-10-15 05:30:25 -07:00
gibbed
5176a7e7c9
Stubbing out some file stuff.
2013-10-15 05:16:05 -07:00
Ben Vanik
6cda645911
Adding instruction address identifier when not tracing.
...
This can be removed later.
2013-10-14 21:53:34 -07:00
Ben Vanik
900252a590
Another dummy XCONFIG value.
2013-10-14 21:48:26 -07:00
Ben Vanik
0b24356080
Skipping unknown form of PM4_EVENT_WRITE_SHD for now.
2013-10-14 21:35:23 -07:00
Ben Vanik
80e3e6fa14
Ignoring unimplemented disasm functions by default.
2013-10-14 21:34:13 -07:00
Ben Vanik
963667f65c
Forcing bl to function calls.
2013-10-14 21:33:54 -07:00
Ben Vanik
8294f22d76
Ignore decommits for now.
2013-10-14 19:06:26 -07:00
Ben Vanik
929ea13548
Emulated vslb.
2013-10-14 18:33:17 -07:00
Ben Vanik
1eba1fb5c2
vspltb
2013-10-14 18:21:26 -07:00
Ben Vanik
5bed1069f8
mulhwx/mulhwux
2013-10-14 17:49:21 -07:00
Ben Vanik
1e66e39efc
divdux/mulldx
2013-10-14 17:30:25 -07:00
Ben Vanik
dc804f2471
KeQuerySystemTime/NtCreateEvent.
2013-10-14 17:19:42 -07:00
Ben Vanik
16020df6a2
mfcr disasm.
2013-10-14 00:48:23 -07:00
Ben Vanik
76ca76bb67
Disabling hole filling in the SDB.
...
This was required when the AOT CPU was built, but isn't needed now.
2013-10-14 00:39:13 -07:00
Ben Vanik
602ed5393e
vspltisb/ldarx/stdcx.
...
ldarx/stdcx are just as faked as the w equivalents.
2013-10-14 00:13:40 -07:00
Ben Vanik
72b54cfe2a
Fixing recursion branches.
2013-10-13 22:59:19 -07:00
Ben Vanik
b28c51271d
A bunch of disasm instructions used by some games.
2013-10-13 22:53:33 -07:00
Ben Vanik
e0701905dd
Dummy values that games seem to want.
2013-10-13 22:25:23 -07:00
Ben Vanik
2eed0b1575
Fixing wraparound.
...
This still needs a tremendous amount of cleanup.
2013-10-13 21:18:23 -07:00
Ben Vanik
4887234bba
Fixing ring buffer wrap around. I think.
2013-10-13 13:39:46 -07:00
Ben Vanik
e0af361d74
Preventing (one of likely many) race condition with ringbuffer.
...
This was causing acks for commands not executed if the CPU ran faster
than the GPU.
2013-10-13 12:17:07 -07:00
Ben Vanik
41a652dd03
Manual reset was not the solution. Bah.
2013-10-13 12:09:25 -07:00
Ben Vanik
f49e35636d
Fixing uninitialized members.
...
Wish VC++ warned about this line clang does...
2013-10-13 11:14:46 -07:00
Ben Vanik
c6d779920d
Switch ring buffer wait event to manual reset.
...
Avoids timing issues with kicks.
2013-10-13 11:06:45 -07:00
Ben Vanik
fa4c7cdd83
Wait until the ringbuffer thread is spun up.
...
This could be made much nicer.
2013-10-13 11:06:29 -07:00
Ben Vanik
cc12f0b96a
Periodically fire interrupts.
2013-10-13 11:06:13 -07:00
Ben Vanik
96a857e892
Massively disgusting and incomplete shader translator.
2013-10-12 22:14:23 -07:00
Ben Vanik
0ef278325f
Hacking to get first triangle drawn.
2013-10-12 15:07:34 -07:00
Ben Vanik
83d7523da1
Fixing lvrx.
2013-10-12 15:06:16 -07:00
Ben Vanik
d46069cd47
Various tweaks from gibbed.
2013-10-12 10:57:01 -07:00
Ben Vanik
51b79cb399
Minor fixes.
2013-10-12 03:02:39 -07:00
Ben Vanik
8e01e2d945
Vertex fetching.
2013-10-12 02:29:01 -07:00
Ben Vanik
04aad708c9
Shader type read for translation.
2013-10-11 22:04:34 -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
611d3bbbeb
Adding in D3D11 GPU skeleton.
2013-10-09 23:18:22 -07:00
Ben Vanik
8558176ee0
Cleaning up the ucode disassembler.
2013-10-09 22:50:44 -07:00
Ben Vanik
14bf4912d1
Fixing CF decode.
2013-10-09 21:15:23 -07:00
Ben Vanik
7b97d475c2
Hacked in shader disassembler.
...
Checking this in before I break it. Has tons of issues.
Turns out the 360 GPU uses an Adreno (rAdeon)-like r2xx shader format.
VC++'s handling of bitfields is absolutely terrible.
2013-10-09 20:28:35 -07:00
Ben Vanik
17be429244
Microcode disassembler skeleton.
2013-10-07 19:58:24 -07:00
Ben Vanik
651954ccae
Starting to drive command buffer actions down to a graphics driver.
2013-10-06 21:09:58 -07:00
Ben Vanik
371075f154
More GPU decoding.
2013-10-06 19:22:02 -07:00
Ben Vanik
99bde2d67e
Fixing terrible vsldoi implementation. Still terrible.
2013-10-06 17:45:59 -07:00
Ben Vanik
87481f5f4c
Fixing vperm.
2013-10-06 16:25:41 -07:00
Ben Vanik
b77403e754
Fixing lvsl/lvsr.
2013-10-06 16:25:23 -07:00
Ben Vanik
74692232c9
Add trace thread mask.
...
Makes seeing only thread 1 easier.
2013-10-06 14:35:03 -07:00
Ben Vanik
1fecb95512
Switching altivec disasm to die on failure.
2013-10-06 12:35:24 -07:00
Ben Vanik
debf21437e
Untested emulated stvlx/stvrx.
2013-10-06 11:22:35 -07:00
Ben Vanik
e5ca996a08
Xmm read/write cleanup.
2013-10-06 11:21:50 -07:00
Ben Vanik
9ebbc3535f
vsldoi.
2013-10-06 11:21:38 -07:00
Ben Vanik
cdb13775e2
Alignment option in xmm read/write.
2013-10-06 10:25:41 -07:00
Ben Vanik
26e22e2b16
Untested and nasty emulated vperm.
2013-10-06 10:25:30 -07:00
Ben Vanik
2b798df631
lvsl/lvsr/lvlx/lvrx
2013-10-06 09:48:42 -07:00
Ben Vanik
e8429b75e0
Significantly faster byte swapping on xmm read/write.
2013-10-04 22:29:19 -07:00
Ben Vanik
d3bf7813ea
Improve perf of vcmp cr6 update.
2013-10-04 13:32:11 -07:00
Ben Vanik
e2842ea4b4
fmaddsx, fmsubx, fmsubsx, fcmpu.
2013-10-04 10:30:57 -07:00
Ben Vanik
091957e72e
Untested srawx/sradix (makes things run further, at least).
2013-10-04 09:34:36 -07:00
Ben Vanik
0f5d0d992d
vupkd3d d3dcolor (untested).
2013-10-03 21:06:40 -07:00
Ben Vanik
611902a97e
Fixing vspltw and vrlimi.
2013-10-03 20:19:11 -07:00
Ben Vanik
bdb5b0eae2
Fixing alignment of xmm load/store.
2013-10-03 20:18:56 -07:00
Ben Vanik
6d46b51ed4
A few vcmp*'s, float_16_to_32 bit of vupkd3d128 (untested).
2013-10-02 23:25:05 -07:00
Ben Vanik
21d273e85b
Tracing FPRs and random fixes.
2013-09-30 22:43:29 -07:00
Ben Vanik
37caa5cea1
vnmsubfp, fixing vrlimi128.
2013-09-30 21:14:23 -07:00
Ben Vanik
f5b99d7448
Fixing some altivec instruction decode issues.
2013-09-30 17:54:49 -07:00
Ben Vanik
26ec76ef35
A lot of progress on altivec instructions.
...
Some bad results, still, and some instructions are not decoding right.
2013-09-29 21:05:48 -07:00
Ben Vanik
3662118246
vmaddfp/vmaddcfp/vmulfp/vsubfp.
2013-09-29 00:02:25 -07:00
Ben Vanik
5652a150e1
vand/vnor/vor/vxor.
2013-09-28 23:45:16 -07:00
Ben Vanik
526b1a85b7
Simple altivec loads/stores.
2013-09-28 23:14:43 -07:00
Ben Vanik
f398ccba56
Skeleton emitter file.
2013-09-28 19:52:33 -07:00
Ben Vanik
51184f73ea
Disassembling a few instructions.
2013-09-28 19:37:34 -07:00
Ben Vanik
f4f66ff7f1
Beginning Altivec disassembly/emitting.
2013-09-28 09:14:04 -07:00
Ben Vanik
b0481472f2
Finally adding thread wait so we kill the spin loop.
2013-09-25 20:55:22 -07:00
Ben Vanik
d16ab71252
Fixing %d print.
2013-09-25 20:28:42 -07:00
Ben Vanik
3e0d9af57e
Placeholders for memory access breakpoints.
2013-09-25 20:13:43 -07:00
Ben Vanik
3706b9a3ce
Ignoring MmFreePhysicalMemory (for now).
...
Games seem to be calling this with 0, which is bogus, so the bug is
elsewhere.
2013-09-25 18:38:18 -07:00
Ben Vanik
536fbbff88
Adding misc Vd functions.
2013-09-25 18:37:30 -07:00
Ben Vanik
3a6ef8cdf9
Fixing VdQueryVideoMode.
2013-09-25 18:37:13 -07:00
Ben Vanik
03a68d4c49
PerformanceCounter.
2013-09-25 18:36:34 -07:00
Ben Vanik
b7fd4f975d
Fixing ringbuffer pointers and no-op instructions.
2013-09-25 00:46:47 -07:00
Ben Vanik
03494c6b88
Stubbing methods and cleanup.
2013-09-25 00:46:29 -07:00
Ben Vanik
91f62918f6
Adding vblank interrupt.
2013-09-25 00:46:09 -07:00
Ben Vanik
998467ce05
Fixing cntlzd.
2013-09-25 00:21:41 -07:00
Ben Vanik
8424a668bf
Basic implementation of events.
2013-09-24 21:26:45 -07:00
Ben Vanik
474ecea277
Adding stubs for SetEvent/ResetEvent.
2013-09-23 22:44:34 -07:00