summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-11 14:48:08 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:27:20 -0600
commitff71bcd0c5425c168f111b8f4a92d0a90a6c9c31 (patch)
tree41190239b9220db09d8849afb6d6f6dbbc03f59b /sim
parent6fee344b754464b1fd17f7c0429e6597e51dc74d (diff)
Implement data aborts
Diffstat (limited to 'sim')
-rw-r--r--sim/start.S20
1 files changed, 12 insertions, 8 deletions
diff --git a/sim/start.S b/sim/start.S
index 7639513..ddd08a5 100644
--- a/sim/start.S
+++ b/sim/start.S
@@ -7,19 +7,19 @@ __undefined:
b undefined
__swi:
- b __data_abort
+ b .
__prefetch_abort:
- b __prefetch_abort
+ b .
__data_abort:
- b __data_abort
+ b data_abort
__irq:
- b __irq
+ b .
__fiq:
- b __fiq
+ b .
.text
@@ -27,8 +27,12 @@ __fiq:
_start:
ldr sp, =_stack_end
bl reset
+
+.global halt
+halt:
+exc_default:
b .
-.weak undefined
-undefined:
- b undefined
+.weak undefined, data_abort
+.set undefined, exc_default
+.set data_abort, exc_default