efb796640b
use instr hash as key for restore candidates
...
makes Golden Sun burn a little slower through the JIT memory
2020-06-16 12:01:10 +02:00
052ff73672
rewrite JIT memory emulation
2020-06-16 12:01:08 +02:00
c2dd6a186d
implement msr and mrs for the x64 JIT
2020-06-16 11:59:07 +02:00
1c07932b40
implement block linking + some refactoring
...
currently only supported for x64
2020-06-16 11:59:06 +02:00
3173e6e25d
re add error for unsupported JIT platforms
2020-06-16 11:57:52 +02:00
99b34efe2d
move ARM64 JIT backend here
2020-06-16 11:57:51 +02:00
ec965c6014
improve nop handling and proper behaviour for LDM^
...
fixes dslinux
2020-06-16 11:57:49 +02:00
3e7483636f
make literal optimisation more reliable
...
fixes spanish Pokemon HeartGold
2020-06-16 11:57:47 +02:00
441869a105
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-06-16 11:57:45 +02:00
9cf7780e46
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-06-16 11:56:45 +02:00
40b88ab05a
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-06-16 11:56:36 +02:00
0e26aa4ede
load register only if needed
...
- do thumb bl long merge in the first step
- preparations for better branch jitting
2020-06-16 11:56:02 +02:00
d208f5909c
fixes for flag optimisation
2020-06-16 11:55:53 +02:00
f378458c10
optimise away unneeded flag sets
...
- especially useful for thumb code and larger max block sizes
- can still be improved upon
2020-06-16 11:55:44 +02:00
316378092a
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-06-16 11:55:24 +02:00
86b96ca47a
remove unneeded dolphin code, C++11 static_assert
2020-06-16 11:54:50 +02:00
d74b15eecc
jit: fix thumb hi reg alu and mcr halt
...
+ mcr/mrc aren't always, msr_imm is never unk on ARM7
2020-06-16 11:54:06 +02:00
4deecc7d65
jit: decrease blockcache AddrMapping size for ARM9
2020-06-16 11:54:05 +02:00
d13d625f73
jit: make everything configurable
2020-06-16 11:53:21 +02:00
83bd863361
jit: branch instructions
2020-06-16 11:53:09 +02:00
10e386fe50
JIT: most mem instructions working
...
+ branching
2020-06-16 11:53:08 +02:00
550e6b86d2
JIT: compilation of word load and store
2020-06-16 11:53:07 +02:00
2f6b46fd4f
JIT: implemented most ALU instructions
2020-06-16 11:53:06 +02:00
c692287eba
JIT: base
...
all instructions are interpreted
2020-06-16 11:53:05 +02:00