From 10f9f2caff06cd5d77f260b6e99051bc599c6a53 Mon Sep 17 00:00:00 2001 From: Johannes Feldmann Date: Mon, 27 Feb 2017 07:39:53 +0100 Subject: [PATCH] If StoreMode is Store or ErrorModel, then reads don't need data anymore. --- DRAMSys/simulator/src/simulation/StlPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DRAMSys/simulator/src/simulation/StlPlayer.cpp b/DRAMSys/simulator/src/simulation/StlPlayer.cpp index 2ed2dd5f..2b805500 100644 --- a/DRAMSys/simulator/src/simulation/StlPlayer.cpp +++ b/DRAMSys/simulator/src/simulation/StlPlayer.cpp @@ -113,7 +113,7 @@ void StlPlayer::nextPayload() unsigned long long addr = std::stoull(address.c_str(), 0, 16); // Get the data if necessary. - if (Configuration::getInstance().StoreMode != StorageMode::NoStorage) { + if (Configuration::getInstance().StoreMode != StorageMode::NoStorage && cmd != TLM_READ_COMMAND) { // The input trace file must provide the data to be stored into the memory. iss >> dataStr; if (dataStr.empty())