From 05b7b2485886db63dc901f73c226d93c16a43abe Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Fri, 6 Apr 2012 22:21:27 -0800 Subject: Integration change. Fixing bug for #149: A pathological case that caused LD instructions to be over counted when the LD instruction is stalled for a long time after sending part of its memory requests. Those memory requests manage to return before the LD is done sending all of its requests. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11888] --- src/abstract_hardware_model.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 69faa5c..a6cc811 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -790,6 +790,7 @@ public: unsigned warp_size() const { return m_config->warp_size; } bool accessq_empty() const { return m_accessq.empty(); } + unsigned accessq_count() const { return m_accessq.size(); } const mem_access_t &accessq_back() { return m_accessq.back(); } void accessq_pop_back() { m_accessq.pop_back(); } @@ -801,6 +802,7 @@ public: } void print( FILE *fout ) const; + unsigned get_uid() const { return m_uid; } protected: -- cgit v1.3