Add compatible assertion between Store Mode and Power Down mode

This commit is contained in:
Thanh C. Tran
2016-11-22 14:27:57 +01:00
parent 5520aa2682
commit 93bcda3c72

View File

@@ -153,8 +153,15 @@ void ConfigurationLoader::loadMCConfig(Configuration& config, XMLElement* mcconf
config.mcconfigUri = src;
loadXML(src, doc);
loadMCConfig(config, doc.FirstChildElement("mcconfig"));
} else
loadConfig(config, mcconfig);
// check compatible between Store Mode and PowerDown Mode
if (config.StoreMode == StorageMode::ErrorModel && config.PowerDownMode != EPowerDownMode::NoPowerDown) {
SC_REPORT_FATAL("ConfigurationLoader", "Error model does not work when power down modes are activated");
throw;
}
loadConfig(config, mcconfig);
}
void ConfigurationLoader::loadDDR3(Configuration& config, XMLElement* memspec)