aboutsummaryrefslogtreecommitdiff
path: root/src/simulator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulator.rs')
-rw-r--r--src/simulator.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simulator.rs b/src/simulator.rs
index 1c87d57..d625347 100644
--- a/src/simulator.rs
+++ b/src/simulator.rs
@@ -338,7 +338,9 @@ impl<'a> Core<'a> {
},
isa::opcodes::SYSTEM => match inst.i_imm() {
0x0 => {
- if let Some(trap) = system.syscall(self.id, &mut self.registers) {
+ let result = system.syscall(self.id, &mut self.registers,
+ &*self.mmu);
+ if let Some(trap) = result {
self.trap(trap);
}
}