From edcfcab8903afa96563a31852266b7bc265f32ee Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 27 Apr 2022 12:58:57 -0700 Subject: [PATCH] Add trigger_hit field to riscv_info Change-Id: If4e1b5c37da4ab9301d91f41ba4789662b677a29 --- src/target/riscv/riscv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h index 59680de78..59fdb38a9 100644 --- a/src/target/riscv/riscv.h +++ b/src/target/riscv/riscv.h @@ -124,6 +124,10 @@ typedef struct { * target controls, while otherwise only a single hart is controlled. */ int trigger_unique_id[RISCV_MAX_HWBPS]; + /* The unique id of the trigger that caused the most recent halt. If the + * most recent halt was not caused by a trigger, then this is -1. */ + uint32_t trigger_hit; + /* The number of entries in the debug buffer. */ int debug_buffer_size;