yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

core: Remove unnecessary assert in ArmInterface()

CpuCore already does this sort of checking, so we can just call that
instead of duplicating the assertions.
This commit is contained in:
Lioncash 2018-10-18 12:07:21 -04:00
parent d4ff4152ad
commit f109615be0
1 changed files with 1 additions and 2 deletions

View File

@ -375,8 +375,7 @@ const Kernel::Process* System::CurrentProcess() const {
}
ARM_Interface& System::ArmInterface(std::size_t core_index) {
ASSERT(core_index < NUM_CPU_CORES);
return impl->cpu_cores[core_index]->ArmInterface();
return CpuCore(core_index).ArmInterface();
}
Cpu& System::CpuCore(std::size_t core_index) {