From 3c25be4c6390db62230065c64c921e129f7e1fe2 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:57:44 +0000 Subject: [PATCH] CPU: Remove totalTicks (unused since scheduler was added) --- include/cpu_dynarmic.hpp | 1 - src/core/CPU/cpu_dynarmic.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/cpu_dynarmic.hpp b/include/cpu_dynarmic.hpp index 048bc62a..43f31d30 100644 --- a/include/cpu_dynarmic.hpp +++ b/include/cpu_dynarmic.hpp @@ -17,7 +17,6 @@ class CPU; class MyEnvironment final : public Dynarmic::A32::UserCallbacks { public: u64 ticksLeft = 0; - u64 totalTicks = 0; Memory& mem; Kernel& kernel; Scheduler& scheduler; diff --git a/src/core/CPU/cpu_dynarmic.cpp b/src/core/CPU/cpu_dynarmic.cpp index da5270b4..85dc70d9 100644 --- a/src/core/CPU/cpu_dynarmic.cpp +++ b/src/core/CPU/cpu_dynarmic.cpp @@ -21,7 +21,6 @@ CPU::CPU(Memory& mem, Kernel& kernel, Emulator& emu) : mem(mem), emu(emu), sched void CPU::reset() { setCPSR(CPSR::UserMode); setFPSCR(FPSCR::MainThreadDefault); - env.totalTicks = 0; cp15->reset(); cp15->setTLSBase(VirtualAddrs::TLSBase); // Set cp15 TLS pointer to the main thread's thread-local storage