Explorar el Código

core: Remove unnecessary assert in ArmInterface()

CpuCore already does this sort of checking, so we can just call that
instead of duplicating the assertions.
Lioncash hace 7 años
padre
commit
f109615be0
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/core/core.cpp

+ 1 - 2
src/core/core.cpp

@@ -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) {