aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/SiFive/HiFive1-flash.py
blob: 06dfcfc2fba881f0b3e01fc9efbcf4ada5ab2333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"