Last chance attempt to find LOAD/STORE

This commit is contained in:
caheckman 2020-01-23 17:08:28 -05:00
parent 46e8a54948
commit 72d6b15133
2 changed files with 11 additions and 2 deletions

View file

@ -1087,9 +1087,10 @@ void Architecture::parseProcessorConfig(DocumentStorage &store)
parseLaneSizes(*iter);
}
else if (elname == "data_space") {
AddrSpace *spc = getSpaceByName(el->getAttributeValue("space"));
const string &spaceName( (*iter)->getAttributeValue("space"));
AddrSpace *spc = getSpaceByName(spaceName);
if (spc == (AddrSpace *)0)
throw LowlevelError("Undefined space: "+el->getAttributeValue("space"));
throw LowlevelError("Undefined space: "+spaceName);
setDefaultDataSpace(spc->getIndex());
}
else if (elname == "segmented_address") {