summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorConnie120 <[email protected]>2023-09-20 14:53:37 -0400
committerGitHub <[email protected]>2023-09-20 14:53:37 -0400
commita0c12f5d63504c67c8bdfb1a6cc689b4ab7867a6 (patch)
treef82315401de5a402a0c22223d70c70c8f5c63cc6 /src/abstract_hardware_model.h
parent53e99da4d21eacbf103ba55bcc9cb6e05219cb91 (diff)
LDGSTS, LDGDEPBAR and DEPBAR Implementations (#62)
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h21
1 files changed, 21 insertions, 0 deletions
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);