summaryrefslogtreecommitdiff
path: root/tb
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-09 00:32:34 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-09 00:36:44 -0600
commitb2b2d5124db13714ed82181c9558568d908dfa2a (patch)
tree1779e0751eb49b1a62beff291792455a7e4ff740 /tb
parent2cbccf921bf84665c55cea67b81f31c66dde4249 (diff)
Implement cp15 control
Diffstat (limited to '')
-rw-r--r--tb/sim/cpuid.S4
-rw-r--r--tb/sim/cpuid.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/tb/sim/cpuid.S b/tb/sim/cpuid.S
new file mode 100644
index 0000000..cde1786
--- /dev/null
+++ b/tb/sim/cpuid.S
@@ -0,0 +1,4 @@
+.global reset
+reset:
+ mrc p15, 0, r0, c0, c0, 0
+ mov pc, lr
diff --git a/tb/sim/cpuid.py b/tb/sim/cpuid.py
new file mode 100644
index 0000000..feb6b68
--- /dev/null
+++ b/tb/sim/cpuid.py
@@ -0,0 +1,2 @@
+def final():
+ assert_reg(r0, 0x41018100);