mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
target/riscv: debug: Introduce tdata1, tdata2, and tdata3 CSRs
Replace type2_trigger_t with the real tdata1, tdata2, and tdata3 CSRs, which allows us to support more types of triggers in the future. Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Message-Id: <20220909134215.1843865-4-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
9d5a84db91
commit
9495c4888a
4 changed files with 48 additions and 88 deletions
|
@ -44,13 +44,6 @@ typedef enum {
|
|||
TRIGGER_TYPE_NUM
|
||||
} trigger_type_t;
|
||||
|
||||
typedef struct {
|
||||
target_ulong mcontrol;
|
||||
target_ulong maddress;
|
||||
struct CPUBreakpoint *bp;
|
||||
struct CPUWatchpoint *wp;
|
||||
} type2_trigger_t;
|
||||
|
||||
/* tdata1 field masks */
|
||||
|
||||
#define RV32_TYPE(t) ((uint32_t)(t) << 28)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue