If StoreMode is Store or ErrorModel, then reads don't need data anymore.

This commit is contained in:
Johannes Feldmann
2017-02-27 07:39:53 +01:00
parent 6f0e2a00e1
commit 10f9f2caff

View File

@@ -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())