Пример #1
0
 public DWT(MEM_AP ap)
 {
     this.ap = ap;
     this.watchpoints = new List<Watchpoint>();
     this.watchpoint_used = 0;
     this.dwt_configured = false;
 }
Пример #2
0
 public FPB(MEM_AP ap)
 {
     this.ap                     = ap;
     this.hw_breakpoints         = new List <HardwareBreakpoint>();
     this.nb_code                = 0;
     this.nb_lit                 = 0;
     this.num_hw_breakpoint_used = 0;
     this.enabled                = false;
 }
Пример #3
0
 public ROMTable(MEM_AP ap, UInt32?top_addr = null, ROMTable parent_table = null)
     : base(ap, top_addr ?? ap.rom_addr)
 {
     // // If no table address is provided, use the root ROM table for the AP.
     // if (top_addr == null)
     // {
     //     top_addr = ap.rom_addr;
     // }
     // super(ROMTable, this).@__init__(ap, top_addr);
     this.parent     = parent_table;
     this.number     = this.parent != null ? this.parent.number + 1 : 0;
     this.entry_size = 0;
     this.components = new List <CoreSightComponent>();
 }
Пример #4
0
 public CoreSightComponent(MEM_AP ap, UInt32 top_addr)
 {
     this.ap              = ap;
     this.address         = top_addr;
     this.top_address     = top_addr;
     this.component_class = 0;
     this.is_rom_table    = false;
     this.cidr            = 0;
     this.pidr            = 0;
     this.devtype         = 0;
     this.devid           = 0;
     this.count_4kb       = 0;
     this.name            = "";
     this.valid           = false;
 }
Пример #5
0
 public CortexM(IDapAccessLink link,
                DebugAccessPort dp,
                MEM_AP ap,
                Memory.MemoryMap memoryMap = null,
                byte core_num = 0) : base(link, memoryMap)
 {
     this.arch            = 0;
     this.core_type       = 0;
     this.has_fpu         = false;
     this.dp              = dp;
     this.ap              = ap;
     this.core_number     = core_num;
     this._run_token      = 0;
     this._target_context = null;
     // Set up breakpoints manager.
     this.fpb        = new FPB(this.ap);
     this.dwt        = new DWT(this.ap);
     this.sw_bp      = new SoftwareBreakpointProvider(this);
     this.bp_manager = new BreakpointManager(this);
     this.bp_manager.add_provider(this.fpb, EBreakpointType.BREAKPOINT_HW);
     this.bp_manager.add_provider(this.sw_bp, EBreakpointType.BREAKPOINT_SW);
 }