diff options
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r-- | riscv/mmu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h index 3da2c92..1f8d34b 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -219,6 +219,9 @@ private: inline trigger_matched_t *trigger_exception(trigger_operation_t operation, reg_t address, reg_t data) { + if (!proc) { + return NULL; + } int match = proc->trigger_match(operation, address, data); if (match == -1) return NULL; |