From f83ba405f167bc906d9e81d8e35a1b70bb105219 Mon Sep 17 00:00:00 2001 From: liangzhen Date: Fri, 2 Feb 2024 10:14:20 +0800 Subject: Check the mcontrol triggers, no other triggers. Signed-off-by: liangzhen Change-Id: Iac914aef8080411e6acd9039c4bdfa728533103c --- debug/gdbserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug') diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 5450adb..ebc591c 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1415,7 +1415,7 @@ class TriggerDmode(TriggerTest): i = 0 for i in range(16): tdata1 = self.gdb.p(f"(({xlen_type} *)&data)[{2*i}]") - if tdata1 == 0: + if (tdata1 == 0) or (tdata1 >> (self.hart.xlen-4) == 15): break tdata2 = self.gdb.p(f"(({xlen_type} *)&data)[{2*i+1}]") -- cgit v1.1