aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/State
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-09-19 17:07:56 -0300
committerGitHub <noreply@github.com>2018-09-19 17:07:56 -0300
commit6d65e536642a7cff7afa34be10fdc8ca66a6e79c (patch)
tree6e7344ea3f5ea7bb84c3b11c241ff7f579457c3e /ChocolArm64/State
parent99b2692425ff4045f103cde0745624b9b41d6fe6 (diff)
Remove cold methods from the CPU cache (#224)
* Remove unused tracing functionality from the CPU * GetNsoExecutable -> GetExecutable * Unsigned comparison * Re-add cpu tracing * Config change * Remove cold methods from the translation cache on the cpu * Replace lock with try lock, pass new ATranslatorCache instead of ATranslator * Rebase fixups
Diffstat (limited to 'ChocolArm64/State')
-rw-r--r--ChocolArm64/State/AThreadState.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/ChocolArm64/State/AThreadState.cs b/ChocolArm64/State/AThreadState.cs
index 22e3df14..e4953b02 100644
--- a/ChocolArm64/State/AThreadState.cs
+++ b/ChocolArm64/State/AThreadState.cs
@@ -1,6 +1,5 @@
using ChocolArm64.Events;
using System;
-using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
@@ -86,17 +85,10 @@ namespace ChocolArm64.State
public event EventHandler<AInstExceptionEventArgs> SvcCall;
public event EventHandler<AInstUndefinedEventArgs> Undefined;
- private Stack<long> CallStack;
-
private static Stopwatch TickCounter;
private static double HostTickFreq;
- public AThreadState()
- {
- CallStack = new Stack<long>();
- }
-
static AThreadState()
{
HostTickFreq = 1.0 / Stopwatch.Frequency;
@@ -153,27 +145,5 @@ namespace ChocolArm64.State
{
Undefined?.Invoke(this, new AInstUndefinedEventArgs(Position, RawOpCode));
}
-
- internal void EnterMethod(long Position)
- {
- CallStack.Push(Position);
- }
-
- internal void ExitMethod()
- {
- CallStack.TryPop(out _);
- }
-
- internal void JumpMethod(long Position)
- {
- CallStack.TryPop(out _);
-
- CallStack.Push(Position);
- }
-
- public long[] GetCallStack()
- {
- return CallStack.ToArray();
- }
}
} \ No newline at end of file