Page fault on writes to unmapped physical memory

This commit is contained in:
Ry 2022-09-15 17:28:56 -07:00
parent 8be5c65c73
commit b55d7deb36

View File

@ -247,7 +247,7 @@ impl Memory {
*value = byte;
}
None => {
error(&format!("attempting to write to unmapped physical memory address: {:#010X}", address));
self.exception_sender().send(Exception::PageFaultWrite(address as u32)).unwrap();
}
}
} else {