aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/State/AThreadState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/State/AThreadState.cs')
-rw-r--r--ChocolArm64/State/AThreadState.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ChocolArm64/State/AThreadState.cs b/ChocolArm64/State/AThreadState.cs
index 2d988a65..d86f5bf9 100644
--- a/ChocolArm64/State/AThreadState.cs
+++ b/ChocolArm64/State/AThreadState.cs
@@ -38,10 +38,10 @@ namespace ChocolArm64.State
public uint CtrEl0 => 0x8444c004;
public uint DczidEl0 => 0x00000004;
- private const long TicksPerS = 19_200_000;
- private const long TicksPerMS = TicksPerS / 1_000;
+ private const ulong TicksPerS = 19_200_000;
+ private const ulong TicksPerMS = TicksPerS / 1_000;
- public long CntpctEl0 => Environment.TickCount * TicksPerMS;
+ public ulong CntpctEl0 => (ulong)Environment.TickCount * TicksPerMS;
public event EventHandler<AInstExceptionEventArgs> Break;
public event EventHandler<AInstExceptionEventArgs> SvcCall;