Roms list properly handle sorting + use ircolib's log so i can stop worrying about re-definition of macros and shit
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <Core.hpp>
|
||||
#include <log.hpp>
|
||||
#include <ircolib/log.hpp>
|
||||
#include <ranges>
|
||||
|
||||
namespace n64 {
|
||||
@@ -42,11 +42,12 @@ void Cop0::eret() {
|
||||
|
||||
|
||||
void Cop0::tlbr() {
|
||||
if (index.i >= 32) {
|
||||
panic("TLBR with TLB index {}", index.i);
|
||||
auto i = index.i;
|
||||
if (i >= 32) {
|
||||
ircolib::panic("TLBR with TLB index {}", i);
|
||||
}
|
||||
|
||||
const TLBEntry entry = tlb[index.i];
|
||||
const TLBEntry entry = tlb[i];
|
||||
|
||||
entryHi.raw = entry.entryHi.raw;
|
||||
entryLo0.raw = entry.entryLo0.raw & 0x3FFFFFFF;
|
||||
@@ -64,7 +65,7 @@ void Cop0::tlbw(const int index_) {
|
||||
page_mask.mask = top | (top >> 1);
|
||||
|
||||
if (index_ >= 32) {
|
||||
panic("TLBWI with TLB index {}", index_);
|
||||
ircolib::panic("TLBWI with TLB index {}", index_);
|
||||
}
|
||||
|
||||
tlb[index_].entryHi.raw = entryHi.raw;
|
||||
|
||||
Reference in New Issue
Block a user