File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2177,6 +2177,9 @@ def test(self):
2177
2177
assertEqual (before , after )
2178
2178
2179
2179
class EtriggerTest (DebugTest ):
2180
+ def early_applicable (self ):
2181
+ return self .target .support_etrigger
2182
+
2180
2183
def setup (self ):
2181
2184
DebugTest .setup (self )
2182
2185
self .gdb .b ("main:start" )
@@ -2208,6 +2211,9 @@ def test(self):
2208
2211
class IcountTest (DebugTest ):
2209
2212
compile_args = ("programs/infinite_loop.S" , )
2210
2213
2214
+ def early_applicable (self ):
2215
+ return self .target .support_icount
2216
+
2211
2217
def setup (self ):
2212
2218
DebugTest .setup (self )
2213
2219
self .gdb .b ("main" )
@@ -2240,7 +2246,7 @@ class ItriggerTest(GdbSingleHartTest):
2240
2246
compile_args = ("programs/interrupt.c" ,)
2241
2247
2242
2248
def early_applicable (self ):
2243
- return self .target .supports_clint_mtime
2249
+ return self .target .supports_clint_mtime and self . target . support_itrigger
2244
2250
2245
2251
def setup (self ):
2246
2252
self .gdb .load ()
Original file line number Diff line number Diff line change @@ -148,6 +148,15 @@ class Target:
148
148
# Support set_pmp_deny to create invalid addresses.
149
149
support_set_pmp_deny = False
150
150
151
+ # Supports Instruction count trigger
152
+ support_icount = True
153
+
154
+ # Supports interrupt trigger
155
+ support_itrigger = True
156
+
157
+ # Supports exception trigger
158
+ support_etrigger = True
159
+
151
160
# Internal variables:
152
161
directory = None
153
162
temporary_files = []
You can’t perform that action at this time.
0 commit comments