Skip to content
Snippets Groups Projects
Commit 363d6131 authored by hcasse's avatar hcasse
Browse files

hard: fixed ugly bug i Memory preventing good default memory

configuration out of verbose mode.
parent c3f805b6
No related branches found
No related tags found
No related merge requests found
......@@ -614,11 +614,11 @@ protected:
void processWorkSpace(WorkSpace *ws) override {
// find the memory configuration
if(mem) {
if(mem != nullptr) {
if(logFor(LOG_DEPS))
log << "\tcustom memory configuration\n";
}
else if(xml) {
else if(xml != nullptr) {
mem = Memory::load(xml);
to_free = true;
if(logFor(LOG_DEPS))
......@@ -630,14 +630,15 @@ protected:
mem = Memory::load(path);
to_free = true;
}
else if(logFor(LOG_DEPS)) {
else {
if(logFor(LOG_DEPS))
log << "\tno memory configuration\n";
mem = &Memory::full;
to_free = false;
log << "\tno memory configuration\n";
}
// verbose display
if(isVerbose() && mem)
if(isVerbose() && mem != nullptr)
for(auto b: mem->banks())
//for(int i = 0; i < mem->banks().count(); i++)
log << "\t\t" << b->name() << "\t"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment