summaryrefslogtreecommitdiff
path: root/tb/sim/paging.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-10 19:18:21 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:27:19 -0600
commit6fee344b754464b1fd17f7c0429e6597e51dc74d (patch)
treea31913d054bbf83772fa29e256be750092256d8f /tb/sim/paging.py
parent6b163a88179ac3073d22622be4991f332529c8bd (diff)
Implement hardware virtual memory
Diffstat (limited to 'tb/sim/paging.py')
-rw-r--r--tb/sim/paging.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tb/sim/paging.py b/tb/sim/paging.py
new file mode 100644
index 0000000..799f03d
--- /dev/null
+++ b/tb/sim/paging.py
@@ -0,0 +1,5 @@
+cycles = 4096
+
+def final():
+ assert_reg(r0, 0x01234567)
+ assert_reg(r1, 0x89abcdef)