This is an automated email from Gerrit.

"Tim Newsome <[email protected]>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/6684

-- gerrit

commit 30becf9e62031ffda3224fb910348bc8770f0f21
Author: Tim Newsome <[email protected]>
Date:   Tue Oct 5 10:03:19 2021 -0700

    Clear type 6 triggers on connecting. (#648)
    
    I missed this when I first add mcontrol6 support.
    
    Change-Id: I1a2706c7ea3a6757ed5083091cd2c764a8b0267c
    Signed-off-by: Tim Newsome <[email protected]>

diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 084939e11..407b7e279 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -3569,6 +3569,10 @@ int riscv_enumerate_triggers(struct target *target)
                                if (tdata1 & MCONTROL_DMODE(riscv_xlen(target)))
                                        riscv_set_register(target, 
GDB_REGNO_TDATA1, 0);
                                break;
+                       case 6:
+                               if (tdata1 & MCONTROL_DMODE(riscv_xlen(target)))
+                                       riscv_set_register(target, 
GDB_REGNO_TDATA1, 0);
+                               break;
                }
        }
 

-- 

Reply via email to