File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class simif_t;
11
11
class bus_t ;
12
12
class processor_t ;
13
13
14
- typedef struct {
14
+ struct debug_module_config_t {
15
15
// Size of program_buffer in 32-bit words, as exposed to the rest of the
16
16
// world.
17
17
unsigned progbufsize = 2 ;
@@ -23,19 +23,19 @@ typedef struct {
23
23
bool support_abstract_fpr_access = true ;
24
24
bool support_haltgroups = true ;
25
25
bool support_impebreak = true ;
26
- } debug_module_config_t ;
26
+ };
27
27
28
- typedef struct {
28
+ struct dmcontrol_t {
29
29
bool haltreq;
30
30
bool resumereq;
31
31
bool hasel;
32
32
unsigned hartsel;
33
33
bool hartreset;
34
34
bool dmactive;
35
35
bool ndmreset;
36
- } dmcontrol_t ;
36
+ };
37
37
38
- typedef struct {
38
+ struct dmstatus_t {
39
39
bool impebreak;
40
40
bool allhavereset;
41
41
bool anyhavereset;
@@ -53,30 +53,30 @@ typedef struct {
53
53
bool authbusy;
54
54
bool cfgstrvalid;
55
55
unsigned version;
56
- } dmstatus_t ;
56
+ };
57
57
58
- typedef enum cmderr {
58
+ enum cmderr_t {
59
59
CMDERR_NONE = 0 ,
60
60
CMDERR_BUSY = 1 ,
61
61
CMDERR_NOTSUP = 2 ,
62
62
CMDERR_EXCEPTION = 3 ,
63
63
CMDERR_HALTRESUME = 4 ,
64
64
CMDERR_OTHER = 7
65
- } cmderr_t ;
65
+ };
66
66
67
- typedef struct {
67
+ struct abstractcs_t {
68
68
bool busy;
69
69
unsigned datacount;
70
70
unsigned progbufsize;
71
71
cmderr_t cmderr;
72
- } abstractcs_t ;
72
+ };
73
73
74
- typedef struct {
74
+ struct abstractauto_t {
75
75
unsigned autoexecprogbuf;
76
76
unsigned autoexecdata;
77
- } abstractauto_t ;
77
+ };
78
78
79
- typedef struct {
79
+ struct sbcs_t {
80
80
unsigned version;
81
81
bool readonaddr;
82
82
unsigned sbaccess;
@@ -90,14 +90,14 @@ typedef struct {
90
90
bool access16;
91
91
bool access8;
92
92
bool sbbusyerror;
93
- } sbcs_t ;
93
+ };
94
94
95
- typedef struct {
95
+ struct hart_debug_state_t {
96
96
bool halted;
97
97
bool resumeack;
98
98
bool havereset;
99
99
uint8_t haltgroup;
100
- } hart_debug_state_t ;
100
+ };
101
101
102
102
class debug_module_t : public abstract_device_t
103
103
{
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ bool trigger_t::textra_match(processor_t * const proc) const noexcept
83
83
if (sselect == SSELECT_SCONTEXT) {
84
84
reg_t mask = (reg_t (1 ) << ((xlen == 32 ) ? CSR_TEXTRA32_SVALUE_LENGTH : CSR_TEXTRA64_SVALUE_LENGTH)) - 1 ;
85
85
assert (CSR_TEXTRA32_SBYTEMASK_LENGTH < CSR_TEXTRA64_SBYTEMASK_LENGTH);
86
- for (int i = 0 ; i < CSR_TEXTRA64_SBYTEMASK_LENGTH; i++)
86
+ for (unsigned i = 0 ; i < CSR_TEXTRA64_SBYTEMASK_LENGTH; i++)
87
87
if (sbytemask & (1 << i))
88
88
mask &= ~(reg_t (0xff ) << (i * 8 ));
89
89
if ((state->scontext ->read () & mask) != (svalue & mask))
You can’t perform that action at this time.
0 commit comments