Errors: Use the correct panic/warn/fatal/info message in some places.
This commit is contained in:
parent
f4291aac25
commit
e7293dd24e
4 changed files with 10 additions and 10 deletions
|
@ -1129,7 +1129,7 @@ DTB::doMmuRegWrite(ThreadContext *tc, Packet *pkt)
|
|||
break;
|
||||
case ASI_SPARC_ERROR_EN_REG:
|
||||
case ASI_SPARC_ERROR_STATUS_REG:
|
||||
warn("Ignoring write to SPARC ERROR regsiter\n");
|
||||
inform("Ignoring write to SPARC ERROR regsiter\n");
|
||||
break;
|
||||
case ASI_HYP_SCRATCHPAD:
|
||||
case ASI_SCRATCHPAD:
|
||||
|
|
|
@ -343,7 +343,7 @@ Process::checkAndAllocNextPage(Addr vaddr)
|
|||
if(stack_base - stack_min > 8*1024*1024)
|
||||
fatal("Over max stack size for one thread\n");
|
||||
pTable->allocate(stack_min, TheISA::PageBytes);
|
||||
warn("Increasing stack size by one page.");
|
||||
inform("Increasing stack size by one page.");
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ simulate(Tick num_cycles)
|
|||
if (se_event != limit_event) {
|
||||
assert(limit_event->scheduled());
|
||||
limit_event->squash();
|
||||
warn_once("be nice to actually delete the event here");
|
||||
hack_once("be nice to actually delete the event here");
|
||||
}
|
||||
|
||||
return se_event;
|
||||
|
|
|
@ -95,12 +95,12 @@ System::System(Params *p)
|
|||
* Load the kernel code into memory
|
||||
*/
|
||||
if (params()->kernel == "") {
|
||||
warn("No kernel set for full system simulation. Assuming you know what"
|
||||
inform("No kernel set for full system simulation. Assuming you know what"
|
||||
" you're doing...\n");
|
||||
} else {
|
||||
// Load kernel code
|
||||
kernel = createObjectFile(params()->kernel);
|
||||
warn("kernel located at: %s", params()->kernel);
|
||||
inform("kernel located at: %s", params()->kernel);
|
||||
|
||||
if (kernel == NULL)
|
||||
fatal("Could not load kernel file %s", params()->kernel);
|
||||
|
@ -115,16 +115,16 @@ System::System(Params *p)
|
|||
|
||||
// load symbols
|
||||
if (!kernel->loadGlobalSymbols(kernelSymtab))
|
||||
panic("could not load kernel symbols\n");
|
||||
fatal("could not load kernel symbols\n");
|
||||
|
||||
if (!kernel->loadLocalSymbols(kernelSymtab))
|
||||
panic("could not load kernel local symbols\n");
|
||||
fatal("could not load kernel local symbols\n");
|
||||
|
||||
if (!kernel->loadGlobalSymbols(debugSymbolTable))
|
||||
panic("could not load kernel symbols\n");
|
||||
fatal("could not load kernel symbols\n");
|
||||
|
||||
if (!kernel->loadLocalSymbols(debugSymbolTable))
|
||||
panic("could not load kernel local symbols\n");
|
||||
fatal("could not load kernel local symbols\n");
|
||||
|
||||
DPRINTF(Loader, "Kernel start = %#x\n", kernelStart);
|
||||
DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd);
|
||||
|
@ -184,7 +184,7 @@ System::registerThreadContext(ThreadContext *tc, int assigned)
|
|||
}
|
||||
|
||||
if (threadContexts[id])
|
||||
panic("Cannot have two CPUs with the same id (%d)\n", id);
|
||||
fatal("Cannot have two CPUs with the same id (%d)\n", id);
|
||||
|
||||
threadContexts[id] = tc;
|
||||
_numContexts++;
|
||||
|
|
Loading…
Reference in a new issue