summaryrefslogtreecommitdiff
path: root/tb/sim/strex.py
diff options
context:
space:
mode:
Diffstat (limited to 'tb/sim/strex.py')
-rw-r--r--tb/sim/strex.py9
1 files changed, 9 insertions, 0 deletions
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)