Skip to content

Commit e3e04b6

Browse files
committed
Refactoring
1 parent 528ee4e commit e3e04b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/emulation/cpu_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class cpu_device
5959
void add_mocked_proc_hook(condition_mocked_proc mocked_proc_def);
6060
void execute_interrupt();
6161
void execute_mocked_proc();
62-
void execute_standard_instruction(uint64_t& cycle_count);
62+
void execute_standard_instruction();
6363
void print();
6464
vector<uint16_t> get_call_stack();
6565
};

src/emulation/cpu_device.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void cpu_device::execute()
5959
if (is_mocked_proc_instruction())
6060
execute_mocked_proc();
6161
else
62-
execute_standard_instruction(cycle_count);
62+
execute_standard_instruction();
6363

6464
for (auto filter : filters)
6565
if (!filter->post())
@@ -212,9 +212,9 @@ void cpu_device::execute_mocked_proc()
212212
}
213213
}
214214

215-
void cpu_device::execute_standard_instruction(uint64_t& cycle_count)
215+
void cpu_device::execute_standard_instruction()
216216
{
217-
cpu->Run(1, cycle_count, cpu->INST_COUNT);
217+
cpu->Run(1, get_cycle_count(), cpu->INST_COUNT);
218218
}
219219

220220
void cpu_device::print()

0 commit comments

Comments
 (0)