mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 10:14:17 +01:00
Halt execution after unimplemented SVC
This commit is contained in:
parent
3855daa849
commit
113bfd059e
@ -8,8 +8,10 @@ namespace lightSwitch::os {
|
|||||||
device_state state = *((device_state *) vstate);
|
device_state state = *((device_state *) vstate);
|
||||||
if (svc::svcTable[svc])
|
if (svc::svcTable[svc])
|
||||||
(*svc::svcTable[svc])(state);
|
(*svc::svcTable[svc])(state);
|
||||||
else
|
else {
|
||||||
state.logger->write(Logger::WARN, "Unimplemented SVC 0x{0:x}", svc);
|
state.logger->write(Logger::ERROR, "Unimplemented SVC 0x{0:x}", svc);
|
||||||
|
state.cpu->StopExecution();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OS::HandleSvc(uint16_t svc) {
|
void OS::HandleSvc(uint16_t svc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user