summaryrefslogtreecommitdiff
path: root/src/core.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-31 13:16:32 +0100
committertaitep <taitep@taitep.se>2025-12-31 13:16:32 +0100
commit21a8479ce99f54012150cc948ed7e5bb066c61e0 (patch)
tree49c5e5fa8736f7990016e410f2714d6e1b0db8ee /src/core.rs
parent09fe12f5165d582c7b83537e38ef8e5d85716f8b (diff)
Make MMIO devices not have control of the address of exceptions
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.rs b/src/core.rs
index e646b46..30d879a 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -58,7 +58,7 @@ impl Core {
let instr = match self.mem.read_word(self.pc) {
Ok(i) => i,
Err(e) => {
- return Err(e.to_exception_instr());
+ return Err(e.into_exception_instr());
}
};