Ryujinx/ARMeilleure/Decoders
LDj3SNuD 5e724cf24e
Add Profiled Persistent Translation Cache. (#769)
* Delete DelegateTypes.cs

* Delete DelegateCache.cs

* Add files via upload

* Update Horizon.cs

* Update Program.cs

* Update MainWindow.cs

* Update Aot.cs

* Update RelocEntry.cs

* Update Translator.cs

* Update MemoryManager.cs

* Update InstEmitMemoryHelper.cs

* Update Delegates.cs

* Nit.

* Nit.

* Nit.

* 10 fewer MSIL bytes for us

* Add comment. Nits.

* Update Translator.cs

* Update Aot.cs

* Nits.

* Opt..

* Opt..

* Opt..

* Opt..

* Allow to change compression level.

* Update MemoryManager.cs

* Update Translator.cs

* Manage corner cases during the save phase. Nits.

* Update Aot.cs

* Translator response tweak for Aot disabled. Nit.

* Nit.

* Nits.

* Create DelegateHelpers.cs

* Update Delegates.cs

* Nit.

* Nit.

* Nits.

* Fix due to #784.

* Fixes due to #757 & #841.

* Fix due to #846.

* Fix due to #847.

* Use MethodInfo for managed method calls.

Use IR methods instead of managed methods about Max/Min (S/U).
Follow-ups & Nits.

* Add missing exception messages.

Reintroduce slow path for Fmov_Vi.
Implement slow path for Fmov_Si.

* Switch to the new folder structure.

Nits.

* Impl. index-based relocation information. Impl. cache file version field.

* Nit.

* Address gdkchan comments.

Mainly:
- fixed cache file corruption issue on exit; - exposed a way to disable AOT on the GUI.

* Address AcK77 comment.

* Address Thealexbarney, jduncanator & emmauss comments.

Header magic, CpuId (FI) & Aot -> Ptc.

* Adaptation to the new application reloading system.

Improvements to the call system of managed methods.
Follow-ups.
Nits.

* Get the same boot times as on master when PTC is disabled.

* Profiled Aot.

* A32 support (#897).

* #975 support (1 of 2).

* #975 support (2 of 2).

* Rebase fix & nits.

* Some fixes and nits (still one bug left).

* One fix & nits.

* Tests fix (by gdk) & nits.

* Support translations not only in high quality and rejit.

Nits.

* Added possibility to skip translations and continue execution, using `ESC` key.

* Update SettingsWindow.cs

* Update GLRenderer.cs

* Update Ptc.cs

* Disabled Profiled PTC by default as requested in the past by gdk.

* Fix rejit bug. Increased number of parallel translations. Add stack unwinding stuffs support (1 of 2).

Nits.

* Add stack unwinding stuffs support (2 of 2). Tuned number of parallel translations.

* Restored the ability to assemble jumps with 8-bit offset when Profiled PTC is disabled or during profiling.

Modifications due to rebase.
Nits.

* Limited profiling of the functions to be translated to the addresses belonging to the range of static objects only.

* Nits.

* Nits.

* Update Delegates.cs

* Nit.

* Update InstEmitSimdArithmetic.cs

* Address riperiperi comments.

* Fixed the issue of unjustifiably longer boot times at the second boot than at the first boot, measured at the same time or reference point and with the same number of translated functions.

* Implemented a simple redundant load/save mechanism.

Halved the value of Decoder.MaxInstsPerFunction more appropriate for the current performance of the Translator.
Replaced by Logger.PrintError to Logger.PrintDebug in TexturePool.cs about the supposed invalid texture format to avoid the spawn of the log.
Nits.

* Nit.

Improved Logger.PrintError in TexturePool.cs to avoid log spawn.
Added missing code for FZ handling (in output) for fp max/min instructions (slow paths).

* Add configuration migration for PTC

Co-authored-by: Thog <me@thog.eu>
2020-06-16 20:28:02 +02:00
..
Optimizations Use a Jump Table for direct and indirect calls/jumps, removing transitions to managed (#975) 2020-03-12 14:20:55 +11:00
Block.cs Use a Jump Table for direct and indirect calls/jumps, removing transitions to managed (#975) 2020-03-12 14:20:55 +11:00
Condition.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
DataOp.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Decoder.cs Add Profiled Persistent Translation Cache. (#769) 2020-06-16 20:28:02 +02:00
DecoderHelper.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
InstDescriptor.cs Set Undefined instruction emitter for Undefined property on InstDescriptor (#957) 2020-02-29 12:12:15 +01:00
InstEmitter.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IntType.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32Alu.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32AluBf.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32AluReg.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32AluUx.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32BImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32BReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32Mem.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32MemEx.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32MemMult.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCode32Simd.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCode32SimdImm.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
IOpCodeAlu.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeAluImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeAluRs.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeAluRx.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeBImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeCond.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeLit.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
IOpCodeSimd.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32Alu.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32AluBf.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32AluImm16.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluMla.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluReg.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluRsImm.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluRsReg.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluUmull.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32AluUx.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32BImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32BReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32Exception.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32Mem.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32MemImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32MemImm8.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32MemLdEx.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32MemMult.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCode32MemReg.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32MemRsImm.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32MemStEx.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32Sat.cs Add SSAT, SSAT16, USAT and USAT16 ARM32 instructions (#954) 2020-03-01 07:51:55 +11:00
OpCode32Sat16.cs Add SSAT, SSAT16, USAT and USAT16 ARM32 instructions (#954) 2020-03-01 07:51:55 +11:00
OpCode32Simd.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdBase.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdBinary.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdCmpZ.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdCvtFI.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdDupElem.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdDupGP.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdExt.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdImm.cs Implement VMOVL and VORR.I32 AArch32 SIMD instructions (#960) 2020-03-10 16:17:30 +11:00
OpCode32SimdImm44.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdLong.cs Implement VMOVL and VORR.I32 AArch32 SIMD instructions (#960) 2020-03-10 16:17:30 +11:00
OpCode32SimdMemImm.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMemMult.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMemPair.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMemSingle.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMovGp.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMovGpDouble.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdMovGpElem.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdReg.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdRegElem.cs Implement VMULL, VMLSL, VRSHR, VQRSHRN, VQRSHRUN AArch32 instructions + other fixes (#977) 2020-03-11 11:49:27 +11:00
OpCode32SimdRegElemLong.cs Implement VMULL, VMLSL, VRSHR, VQRSHRN, VQRSHRUN AArch32 instructions + other fixes (#977) 2020-03-11 11:49:27 +11:00
OpCode32SimdRegLong.cs Implement VMULL, VMLSL, VRSHR, VQRSHRN, VQRSHRUN AArch32 instructions + other fixes (#977) 2020-03-11 11:49:27 +11:00
OpCode32SimdRegS.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdRev.cs Implement Fast Paths for most A32 SIMD instructions (#952) 2020-03-05 11:41:33 +11:00
OpCode32SimdS.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdSel.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdShImm.cs Implement VMULL, VMLSL, VRSHR, VQRSHRN, VQRSHRUN AArch32 instructions + other fixes (#977) 2020-03-11 11:49:27 +11:00
OpCode32SimdShImmNarrow.cs Implement VMULL, VMLSL, VRSHR, VQRSHRN, VQRSHRUN AArch32 instructions + other fixes (#977) 2020-03-11 11:49:27 +11:00
OpCode32SimdSpecial.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdSqrte.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32SimdTbl.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCode32System.cs Add most of the A32 instruction set to ARMeilleure (#897) 2020-02-24 08:20:40 +11:00
OpCodeAdr.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeAlu.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeAluBinary.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeAluImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeAluRs.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeAluRx.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBfm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBImmAl.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBImmCmp.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBImmCond.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBImmTest.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeBReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeCcmp.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeCcmpImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeCcmpReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeCsel.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeException.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMem.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMemEx.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMemImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMemLit.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMemPair.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMemReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMov.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeMul.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimd.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdCvt.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdExt.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdFcond.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdFmov.cs Implemented fast paths for: (#841) 2019-12-07 13:45:32 +01:00
OpCodeSimdHelper.cs Implement VMOVL and VORR.I32 AArch32 SIMD instructions (#960) 2020-03-10 16:17:30 +11:00
OpCodeSimdImm.cs Implemented fast paths for: (#841) 2019-12-07 13:45:32 +01:00
OpCodeSimdIns.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemLit.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemMs.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemPair.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdMemSs.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdRegElem.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdRegElemF.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdShImm.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSimdTbl.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeSystem.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeT16.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeT16AluImm8.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeT16BReg.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
OpCodeTable.cs VABS takes one input register, not two. (#1300) 2020-06-14 10:32:21 +10:00
RegisterSize.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
ShiftType.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00