Commit graph

1549 commits

Author SHA1 Message Date
Arisotura
a8aa834c16 now with display! 2020-04-27 22:42:07 +02:00
Arisotura
3c883a2152 hey look, it runs shit now! 2020-04-27 22:32:33 +02:00
Arisotura
931da1c66f add a bunch of code 2020-04-27 22:02:45 +02:00
Arisotura
d6efb03248 HARK HARK HARK 2020-04-27 20:59:11 +02:00
Arisotura
d9c55a4f1f fix dumb include path shit. 2020-04-27 15:59:52 +02:00
Arisotura
690f9f3874 get some of the shit going, I guess
atleast the emuthread is going and we have its control system down

and other fun shit, too
2020-04-27 12:06:44 +02:00
RSDuck
d3f14b7a8b fix #584 2020-04-27 00:56:36 +02:00
RSDuck
bcc4b5c8dd fix regression from last commit
also a small mistake with msr
2020-04-26 23:25:32 +02:00
RSDuck
b0b9ec42e4 don't use param registers for ReadBanked/WriteBanked
should fix linux build
2020-04-26 20:47:36 +02:00
RSDuck
47b44a6be8 fix build with JIT disabled and set default JIT maxblock size to 32 2020-04-26 16:27:26 +02:00
RSDuck
59c8d39765 hopefully fix stack handling for linux 2020-04-26 16:17:16 +02:00
RSDuck
a9dd6e30ad implement msr and mrs for the x64 JIT 2020-04-26 13:05:18 +02:00
RSDuck
68d552074b compile UMULLs and some fixes 2020-04-26 13:05:17 +02:00
RSDuck
3787bab1f6 implement block linking + some refactoring
currently only supported for x64
2020-04-26 13:05:17 +02:00
RSDuck
5d0f244f3c include more information in DataRegion 2020-04-26 13:05:16 +02:00
RSDuck
59f710158f arm64 fix itcm invalidation and ldm^/stm^ 2020-04-26 13:05:15 +02:00
RSDuck
96b8ac1af2 preparations for block linking 2020-04-26 13:05:15 +02:00
RSDuck
0280fbe194 this mistake was phenomally stupid 2020-04-26 13:05:14 +02:00
RSDuck
05962d9798 the time of good commit names is long gone 2020-04-26 13:05:14 +02:00
RSDuck
e9760c941b git played a prank on me haha very funny 2020-04-26 13:05:14 +02:00
RSDuck
2e6e6aa750 this it should work 2020-04-26 13:05:13 +02:00
RSDuck
266fd20ea5 fixup for aarch64 JIT 2020-04-26 13:05:12 +02:00
RSDuck
42d67c8145 fix LDM usermode for aarch64 as well 2020-04-26 13:05:12 +02:00
RSDuck
2dbb9840fb re add error for unsupported JIT platforms 2020-04-26 13:05:11 +02:00
RSDuck
899cf97c51 apply fixes for aarch64 linux by @nadiaholmquist 2020-04-26 13:05:10 +02:00
RSDuck
d6cc7de6c4 move ARM64 JIT backend here 2020-04-26 13:05:09 +02:00
RSDuck
842df432aa remove debug leftovers 2020-04-26 13:05:09 +02:00
RSDuck
9b98b8816a improve nop handling and proper behaviour for LDM^
fixes dslinux
2020-04-26 13:05:08 +02:00
RSDuck
60650fa82e disable literal optimations in DTCM 2020-04-26 13:05:07 +02:00
RSDuck
0c5311731b make savestates 100% compatible again 2020-04-26 13:05:07 +02:00
RSDuck
386100c053 make literal optimisation more reliable
fixes spanish Pokemon HeartGold
2020-04-26 13:05:06 +02:00
RSDuck
803c61e126 fix config key for jit literal optimisations 2020-04-26 13:05:06 +02:00
RSDuck
81f38c14be integrate changes from ARM64 backend and more
- better handle LDM/STM in reg alloc
- unify Halted and IRQ in anticipation for branch inlining
- literal optimisations can be disabled in gui
- jit blocks follow simple returns
- fix idle loop detection
- break jit blocks on IRQ (fixes saving in Pokemon White)
2020-04-26 13:05:05 +02:00
RSDuck
aa23f21b8d decrease jit block cache address granularity
fixes Dragon Quest IX
move code with side effects out of assert, fixes release build
(thanks to m4wx for this one)
also remove some leftovers of jit pipelining
2020-04-26 13:05:05 +02:00
RSDuck
7424f9fda0 remove leftover debug code 2020-04-26 13:05:04 +02:00
RSDuck
a687be9879 new block cache and much more...
- more reliable code invalidation detection
- blocks aren't stopped at any branch, but are being followed
if possible to get larger blocks
- idle loop recognition
- optimised literal loads, load/store cycle counting
 and loads/stores from constant addresses
2020-04-26 13:05:03 +02:00
RSDuck
5338c28f40 load register only if needed
- do thumb bl long merge in the first step
- preparations for better branch jitting
2020-04-26 13:05:02 +02:00
RSDuck
2ef776883f more fixes for flag optimisation
+ small cycle counting optimisation
2020-04-26 13:05:02 +02:00
RSDuck
5202c505ab remove debug printing 2020-04-26 13:05:01 +02:00
RSDuck
ea562d2fec fixes for flag optimisation 2020-04-26 13:05:01 +02:00
RSDuck
b5dda7d6e2 add ui confirm dialog for linux 2020-04-26 13:05:00 +02:00
RSDuck
5ea91b8a03 optimise away unneeded flag sets
- especially useful for thumb code and larger max block sizes
- can still be improved upon
2020-04-26 13:05:00 +02:00
RSDuck
03ab7f1645 fix jit block size not changeable 2020-04-26 13:04:59 +02:00
RSDuck
3001d9492c abandon pipelining on jit
fixes Golden Sun Dawn
this makes the cpu state incompatible between interpreter and JIT. That's why switching cpu mode requires a restart(not requiring is stupid anyway) and the pipeline is manually filled when making a save state.
2020-04-26 13:04:59 +02:00
RSDuck
ec21172cd9 fix register alloc for half word loads
fixes Mega Man Star Force 2 with cheat applied
it probably used a pc relative load which were interpreted as branches
2020-04-26 13:04:58 +02:00
RSDuck
5e443e7962 remove unneeded dolphin code, C++11 static_assert 2020-04-26 13:04:57 +02:00
Arisotura
dcf21c98f2 add the JIT shito to the Codeblocks project 2020-04-26 13:04:56 +02:00
RSDuck
f31976fed0 jit: fix RSC 2020-04-26 13:03:12 +02:00
RSDuck
707da1f4c7 remove debug printf 2020-04-26 13:03:11 +02:00
RSDuck
51b6b7a7d5 fix uninitialised memory mapping 2020-04-26 13:03:11 +02:00