summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_fetch.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2011-12-08 13:39:24 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:01 -0700
commit804adeb4dac318dca3dd396848e67c24fe707ed4 (patch)
tree9f1e17e8279acec60c9a9e526ad6c89dd6da409e /src/gpgpu-sim/mem_fetch.cc
parent1c5a166922911a68d6ea5479844cb9b704153079 (diff)
Integration change. mem_divergence 10699 which uses a tuple file for this explicit string/enum dependency. Removes a bug when doing debug priting caused by walking off the end of the named list because someone forgot to update the string array
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11143]
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.cc')
-rw-r--r--src/gpgpu-sim/mem_fetch.cc27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/gpgpu-sim/mem_fetch.cc b/src/gpgpu-sim/mem_fetch.cc
index abf1d4e..a085cd9 100644
--- a/src/gpgpu-sim/mem_fetch.cc
+++ b/src/gpgpu-sim/mem_fetch.cc
@@ -66,26 +66,13 @@ mem_fetch::~mem_fetch()
m_status = MEM_FETCH_DELETED;
}
-static const char* Status_str[] = {
-"INITIALIZED",
-"IN_ICNT_TO_MEM",
-"IN_PARTITION_ROP_DELAY",
-"IN_PARTITION_ICNT_TO_L2_QUEUE",
-"IN_PARTITION_L2_TO_DRAM_QUEUE",
-"IN_PARTITION_MC_INTERFACE_QUEUE",
-"IN_PARTITION_MC_INPUT_QUEUE",
-"IN_PARTITION_MC_BANK_ARB_QUEUE",
-"IN_PARTITION_DRAM",
-"IN_PARTITION_MC_RETURNQ",
-"IN_PARTITION_DRAM_TO_L2_QUEUE",
-"IN_PARTITION_L2_FILL_QUEUE",
-"IN_PARTITION_L2_TO_ICNT_QUEUE",
-"IN_ICNT_TO_SHADER",
-"IN_CLUSTER_TO_SHADER_QUEUE",
-"IN_SHADER_LDST_RESPONSE_FIFO",
-"IN_SHADER_FETCHED",
-"MEM_FETCH_DELETED"
-};
+#define MF_TUP_BEGIN(X) static const char* Status_str[] = {
+#define MF_TUP(X) #X
+#define MF_TUP_END(X) };
+#include "mem_fetch_status.tup"
+#undef MF_TUP_BEGIN
+#undef MF_TUP
+#undef MF_TUP_END
void mem_fetch::print( FILE *fp, bool print_inst ) const
{