aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions/NativeInterface.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2023-04-11 07:55:04 +0100
committerGitHub <noreply@github.com>2023-04-11 08:55:04 +0200
commit9ef94c8292beda825fa76e05ad2e561c6d571c95 (patch)
treee535eef49837759f9947bac48a8cbf0b91512d9e /ARMeilleure/Instructions/NativeInterface.cs
parent915d6d044cbf8c89935f14b8c7e085ad729f0e28 (diff)
ARMeilleure: Move TPIDR_EL0 and TPIDRRO_EL0 to NativeContext (#4661)1.1.705
* ARMeilleure: Move TPIDR_EL0 and TPIDRRO_EL0 to NativeContext Some games access these system registers several tens of thousands of times in a second from many different threads. While this isn't really crippling, it is a lot of wasted time spent in a reverse pinvoke transition. Example games are Pokemon Scarlet/Violet and BOTW. These games have a lot of different potential bottlenecks so it's unlikely you will see a consistent improvement, but it definitely disappears from the cpu profile. * Remove unreachable code. * Add ulong conversion for offsets * Nit
Diffstat (limited to 'ARMeilleure/Instructions/NativeInterface.cs')
-rw-r--r--ARMeilleure/Instructions/NativeInterface.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/ARMeilleure/Instructions/NativeInterface.cs b/ARMeilleure/Instructions/NativeInterface.cs
index 57964cc8..2c35387a 100644
--- a/ARMeilleure/Instructions/NativeInterface.cs
+++ b/ARMeilleure/Instructions/NativeInterface.cs
@@ -72,26 +72,6 @@ namespace ARMeilleure.Instructions
return (ulong)GetContext().DczidEl0;
}
- public static ulong GetTpidrEl0()
- {
- return (ulong)GetContext().TpidrEl0;
- }
-
- public static uint GetTpidrEl032()
- {
- return (uint)GetContext().TpidrEl0;
- }
-
- public static ulong GetTpidrroEl0()
- {
- return (ulong)GetContext().TpidrroEl0;
- }
-
- public static uint GetTpidr32()
- {
- return (uint)GetContext().TpidrroEl0;
- }
-
public static ulong GetCntfrqEl0()
{
return GetContext().CntfrqEl0;
@@ -106,16 +86,6 @@ namespace ARMeilleure.Instructions
{
return GetContext().CntvctEl0;
}
-
- public static void SetTpidrEl0(ulong value)
- {
- GetContext().TpidrEl0 = (long)value;
- }
-
- public static void SetTpidrEl032(uint value)
- {
- GetContext().TpidrEl0 = (long)value;
- }
#endregion
#region "Read"