From e5ee097e49c1dfc67f21e5a693733a9cbad15ce2 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Mon, 24 Jun 2024 22:56:59 +0100 Subject: [PATCH] PTC version, remove unnecessary instruction --- src/ARMeilleure/Translation/PTC/Ptc.cs | 2 +- .../LightningJit/Arm64/Target/Arm64/InstEmitSystem.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ARMeilleure/Translation/PTC/Ptc.cs b/src/ARMeilleure/Translation/PTC/Ptc.cs index 135ae73bed..559a629c2e 100644 --- a/src/ARMeilleure/Translation/PTC/Ptc.cs +++ b/src/ARMeilleure/Translation/PTC/Ptc.cs @@ -29,7 +29,7 @@ namespace ARMeilleure.Translation.PTC private const string OuterHeaderMagicString = "PTCohd\0\0"; private const string InnerHeaderMagicString = "PTCihd\0\0"; - private const uint InternalVersion = 26958; //! To be incremented manually for each change to the ARMeilleure project. + private const uint InternalVersion = 6978; //! To be incremented manually for each change to the ARMeilleure project. private const string ActualDir = "0"; private const string BackupDir = "1"; diff --git a/src/Ryujinx.Cpu/LightningJit/Arm64/Target/Arm64/InstEmitSystem.cs b/src/Ryujinx.Cpu/LightningJit/Arm64/Target/Arm64/InstEmitSystem.cs index 8fa95b8a5f..920f61c103 100644 --- a/src/Ryujinx.Cpu/LightningJit/Arm64/Target/Arm64/InstEmitSystem.cs +++ b/src/Ryujinx.Cpu/LightningJit/Arm64/Target/Arm64/InstEmitSystem.cs @@ -379,9 +379,6 @@ namespace Ryujinx.Cpu.LightningJit.Arm64.Target.Arm64 asm.Ubfx(indexReg, guestAddress, level1.Index, level1.Length); asm.Lsl(indexReg, indexReg, Const(3)); - // Is the page address zero? Make sure to use the fallback if it is. - asm.Tst(rn, rn); - // Index into the page. asm.Add(rn, rn, indexReg);