OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [MainWindow/] [ebreakhandler.h] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Breakpoint feedback controller.
6
 * @details    This class allows to read/write DSU control operations allowing
7
 *             to correctly continue execution on breakpoints.
8
 */
9
 
10
#pragma once
11
 
12
#include "api_core.h"   // MUST BE BEFORE QtWidgets.h or any other Qt header.
13
#include "igui.h"
14
 
15
namespace debugger {
16
 
17
class EBreakHandler : public IGuiCmdHandler {
18
public:
19
    EBreakHandler(IGui *gui);
20
    ~EBreakHandler();
21
 
22
    void setBrAddressFetch(uint64_t addr) { dsu_sw_br_ = addr; }
23
    void setHwRemoveBreakpoint(uint64_t addr) { dsu_hw_br_ = addr; }
24
 
25
    /** IGuiCmdHandler */
26
    virtual void handleResponse(AttributeType *req, AttributeType *resp);
27
 
28
    /** Write address and instruction into fetcher to skip EBREAK once */
29
    void skip();
30
 
31
private:
32
    AttributeType readBr_;
33
    AttributeType readNpc_;
34
    AttributeType brList_;
35
    IGui *igui_;
36
    uint64_t dsu_sw_br_;
37
    uint64_t dsu_hw_br_;
38
};
39
 
40
}  // namespace debugger

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.