Add compatible assertion between Store Mode and Power Down mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user