From d9e89db78284fc1a9f0aa1ed86d076f50c58c1f2 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 3 Oct 2023 07:46:10 -0600 Subject: tb/sim: add test: strex --- tb/sim/strex.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tb/sim/strex.py (limited to 'tb/sim/strex.py') diff --git a/tb/sim/strex.py b/tb/sim/strex.py new file mode 100644 index 0000000..d53c355 --- /dev/null +++ b/tb/sim/strex.py @@ -0,0 +1,9 @@ +mem_dumps = [range(0x1000, 0x1008)] + +def final(): + assert_reg(r2, 1) + assert_reg(r5, 1) + assert_reg(r6, 0) + + assert_mem(0x1000, 0xfedcba98) + assert_mem(0x1004, 0x01234567) -- cgit v1.2.3