aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/SiFive/HiFive1-flash.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets/SiFive/HiFive1-flash.py')
-rw-r--r--debug/targets/SiFive/HiFive1-flash.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/debug/targets/SiFive/HiFive1-flash.py b/debug/targets/SiFive/HiFive1-flash.py
new file mode 100644
index 0000000..06dfcfc
--- /dev/null
+++ b/debug/targets/SiFive/HiFive1-flash.py
@@ -0,0 +1,15 @@
+import targets
+
+# Like HiFive1, but put code in flash
+
+class HiFive1FlashHart(targets.Hart):
+ xlen = 32
+ ram = 0x80000000
+ ram_size = 16 * 1024
+ instruction_hardware_breakpoint_count = 2
+ misa = 0x40001105
+ link_script_path = "HiFive1-flash.lds"
+
+class HiFive1Flash(targets.Target):
+ harts = [HiFive1FlashHart()]
+ openocd_config_path = "HiFive1.cfg"