From 6416bc193843702fc9d77be24e7b5b86c2b5e68c Mon Sep 17 00:00:00 2001 From: mageven <62494521+mageven@users.noreply.github.com> Date: Sat, 23 May 2020 15:45:59 +0530 Subject: Implement CNTVCT_EL0 (#1268) * Implement CNTVCT_EL0 * Fix comment --- ARMeilleure/State/ExecutionContext.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ARMeilleure/State') diff --git a/ARMeilleure/State/ExecutionContext.cs b/ARMeilleure/State/ExecutionContext.cs index 8593f41e..2755122f 100644 --- a/ARMeilleure/State/ExecutionContext.cs +++ b/ARMeilleure/State/ExecutionContext.cs @@ -32,6 +32,10 @@ namespace ARMeilleure.State } } + // CNTVCT_EL0 = CNTPCT_EL0 - CNTVOFF_EL2 + // Since EL2 isn't implemented, CNTVOFF_EL2 = 0 + public ulong CntvctEl0 => CntpctEl0; + public static TimeSpan ElapsedTime => _tickCounter.Elapsed; public long TpidrEl0 { get; set; } -- cgit v1.2.3