diff options
| author | 2018-10-18 12:07:21 -0400 | |
|---|---|---|
| committer | 2018-10-18 12:07:25 -0400 | |
| commit | f109615be05ae7db05917a68012c6398173399b5 (patch) | |
| tree | c530734f56db9daa0fc0b9d59307f92b21805c09 /src/core/core.cpp | |
| parent | Merge pull request #1510 from lioncash/xci (diff) | |
| download | yuzu-f109615be05ae7db05917a68012c6398173399b5.tar.gz yuzu-f109615be05ae7db05917a68012c6398173399b5.tar.xz yuzu-f109615be05ae7db05917a68012c6398173399b5.zip | |
core: Remove unnecessary assert in ArmInterface()
CpuCore already does this sort of checking, so we can just call that
instead of duplicating the assertions.
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 3c57a62ec..7cb86ed92 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -375,8 +375,7 @@ const Kernel::Process* System::CurrentProcess() const { | |||
| 375 | } | 375 | } |
| 376 | 376 | ||
| 377 | ARM_Interface& System::ArmInterface(std::size_t core_index) { | 377 | ARM_Interface& System::ArmInterface(std::size_t core_index) { |
| 378 | ASSERT(core_index < NUM_CPU_CORES); | 378 | return CpuCore(core_index).ArmInterface(); |
| 379 | return impl->cpu_cores[core_index]->ArmInterface(); | ||
| 380 | } | 379 | } |
| 381 | 380 | ||
| 382 | Cpu& System::CpuCore(std::size_t core_index) { | 381 | Cpu& System::CpuCore(std::size_t core_index) { |