Basic CD image loading

This commit is contained in:
Connor McLaughlin
2019-09-20 20:14:00 +10:00
parent 53e755aa68
commit ad652c47ed
12 changed files with 260 additions and 8 deletions

View File

@ -39,7 +39,7 @@ bool Core::DoMemoryAccess(VirtualMemoryAddress address, u32& value)
case 0x03: // KUSEG 1536M-2048M
{
// Above 512mb raises an exception.
Panic("Bad user access");
RaiseException(is_instruction_fetch ? Exception::IBE : Exception::DBE);
return false;
}
@ -95,7 +95,7 @@ bool Core::DoMemoryAccess(VirtualMemoryAddress address, u32& value)
}
else
{
Panic("KSEG2 access");
RaiseException(is_instruction_fetch ? Exception::IBE : Exception::DBE);
return false;
}
}