From b2b2d5124db13714ed82181c9558568d908dfa2a Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 9 Dec 2022 00:32:34 -0600 Subject: Implement cp15 control --- tb/sim/cpuid.S | 4 ++++ tb/sim/cpuid.py | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 tb/sim/cpuid.S create mode 100644 tb/sim/cpuid.py (limited to 'tb/sim') 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); -- cgit v1.2.3