better logs
This commit is contained in:
@@ -147,7 +147,7 @@ void broadway::stwu(ircolib::u32 instr, mem &mem) {
|
||||
auto _ = mem.write32(EA, gpr[utils::RS(instr)])
|
||||
.and_then([&] { return std::expected<void, std::string>(); })
|
||||
.or_else([&](std::string e) {
|
||||
ircolib::panic("broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
ircolib::panic("stwu broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
return std::expected<void, std::string>();
|
||||
});
|
||||
gpr[utils::RA(instr)] = EA;
|
||||
@@ -161,7 +161,7 @@ void broadway::stbu(ircolib::u32 instr, mem &mem) {
|
||||
auto _ = mem.write8(EA, gpr[utils::RS(instr)])
|
||||
.and_then([&] { return std::expected<void, std::string>(); })
|
||||
.or_else([&](std::string e) {
|
||||
ircolib::panic("broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
ircolib::panic("stbu broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
return std::expected<void, std::string>();
|
||||
});
|
||||
gpr[utils::RA(instr)] = EA;
|
||||
@@ -176,7 +176,7 @@ void broadway::stw(ircolib::u32 instr, mem &mem) {
|
||||
auto _ = mem.write32(EA, gpr[utils::RS(instr)])
|
||||
.and_then([&] { return std::expected<void, std::string>(); })
|
||||
.or_else([&](std::string e) {
|
||||
ircolib::panic("broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
ircolib::panic("stw broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
return std::expected<void, std::string>();
|
||||
});
|
||||
}
|
||||
@@ -192,7 +192,7 @@ void broadway::sth(ircolib::u32 instr, mem &mem) {
|
||||
auto _ = mem.write16(EA, ircolib::u16(gpr[utils::RS(instr)]))
|
||||
.and_then([&] { return std::expected<void, std::string>(); })
|
||||
.or_else([&](std::string e) {
|
||||
ircolib::panic("broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
ircolib::panic("sth broadway write failed. Reason: {} (pc: 0x{:08X})", e, pc - 4);
|
||||
return std::expected<void, std::string>();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user