diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-12-09 00:32:34 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-12-09 00:36:44 -0600 |
| commit | b2b2d5124db13714ed82181c9558568d908dfa2a (patch) | |
| tree | 1779e0751eb49b1a62beff291792455a7e4ff740 /tb | |
| parent | 2cbccf921bf84665c55cea67b81f31c66dde4249 (diff) | |
Implement cp15 control
Diffstat (limited to 'tb')
| -rw-r--r-- | tb/sim/cpuid.S | 4 | ||||
| -rw-r--r-- | tb/sim/cpuid.py | 2 |
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); |
