From f83ba405f167bc906d9e81d8e35a1b70bb105219 Mon Sep 17 00:00:00 2001 From: liangzhen Date: Fri, 2 Feb 2024 10:14:20 +0800 Subject: [PATCH] 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(-) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 5450adb1e..ebc591c19 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1415,7 +1415,7 @@ def check_triggers(self, tdata1_lsbs, tdata2): 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}]")