Skip to content

Commit

Permalink
cannon: Rename cpu getter to match naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaxter committed Aug 16, 2024
1 parent 801dd48 commit 71c1923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cannon/mipsevm/multithreaded/mips.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion cannon/mipsevm/multithreaded/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 71c1923

Please sign in to comment.