From a0c12f5d63504c67c8bdfb1a6cc689b4ab7867a6 Mon Sep 17 00:00:00 2001 From: Connie120 Date: Wed, 20 Sep 2023 14:53:37 -0400 Subject: LDGSTS, LDGDEPBAR and DEPBAR Implementations (#62) --- src/abstract_hardware_model.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 3b95829..ebf6535 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -1056,6 +1056,13 @@ class warp_inst_t : public inst_t { m_uid = 0; m_empty = true; m_config = NULL; + + // Ni: + m_is_ldgsts = false; + m_is_ldgdepbar = false; + m_is_depbar = false; + + m_depbar_group_no = 0; } warp_inst_t(const core_config *config) { m_uid = 0; @@ -1069,6 +1076,13 @@ class warp_inst_t : public inst_t { m_is_printf = false; m_is_cdp = 0; should_do_atomic = true; + + // Ni: + m_is_ldgsts = false; + m_is_ldgdepbar = false; + m_is_depbar = false; + + m_depbar_group_no = 0; } virtual ~warp_inst_t() {} @@ -1251,6 +1265,13 @@ class warp_inst_t : public inst_t { // Jin: cdp support public: int m_is_cdp; + + // Ni: add boolean to indicate whether the instruction is ldgsts + bool m_is_ldgsts; + bool m_is_ldgdepbar; + bool m_is_depbar; + + unsigned int m_depbar_group_no; }; void move_warp(warp_inst_t *&dst, warp_inst_t *&src); -- cgit v1.3