From e4325fda2776e065400a791accb083a76db6f511 Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Fri, 24 Feb 2023 09:44:32 -0800 Subject: Initialize all fields of icount_t According to table in debug spec. This has no visible effect, because every time we instantiate an icount_t (in triggers::module_t::tdata1_write) we immediately call tdata1_write() which sets these values, but it's cleaner this way. --- riscv/triggers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/riscv/triggers.h b/riscv/triggers.h index 199a3c2..0c9dabc 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -249,11 +249,11 @@ public: virtual std::optional detect_icount_match(processor_t * const proc) noexcept override; private: - bool dmode; - bool hit; - unsigned count, count_read_value; - bool pending, pending_read_value; - action_t action; + bool dmode = false; + bool hit = false; + unsigned count = 1, count_read_value = 1; + bool pending = false, pending_read_value = false; + action_t action = (action_t)0; }; class module_t { -- cgit v1.1