From 71c19238b4389f57f4be43b4ecb81d1a7946bf91 Mon Sep 17 00:00:00 2001 From: mbaxter Date: Mon, 5 Aug 2024 13:23:45 -0400 Subject: [PATCH] cannon: Rename cpu getter to match naming convention --- cannon/mipsevm/multithreaded/mips.go | 2 +- cannon/mipsevm/multithreaded/state.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cannon/mipsevm/multithreaded/mips.go b/cannon/mipsevm/multithreaded/mips.go index 7ad39361db80..7949bbe6c771 100644 --- a/cannon/mipsevm/multithreaded/mips.go +++ b/cannon/mipsevm/multithreaded/mips.go @@ -264,7 +264,7 @@ func (m *InstrumentedState) mipsStep() error { } // Exec the rest of the step logic - return exec.ExecMipsCoreStepLogic(m.state.getCpuMutable(), m.state.GetRegistersRef(), m.state.Memory, insn, opcode, fun, m.memoryTracker, m.stackTracker) + return exec.ExecMipsCoreStepLogic(m.state.getCpuRef(), m.state.GetRegistersRef(), m.state.Memory, insn, opcode, fun, m.memoryTracker, m.stackTracker) } func (m *InstrumentedState) onWaitComplete(thread *ThreadState, isTimedOut bool) { diff --git a/cannon/mipsevm/multithreaded/state.go b/cannon/mipsevm/multithreaded/state.go index f6d869c91f83..6602357747bf 100644 --- a/cannon/mipsevm/multithreaded/state.go +++ b/cannon/mipsevm/multithreaded/state.go @@ -133,7 +133,7 @@ func (s *State) GetCpu() mipsevm.CpuScalars { return activeThread.Cpu } -func (s *State) getCpuMutable() *mipsevm.CpuScalars { +func (s *State) getCpuRef() *mipsevm.CpuScalars { return &s.GetCurrentThread().Cpu }