summaryrefslogtreecommitdiff
path: root/sim/system.hh
diff options
context:
space:
mode:
Diffstat (limited to 'sim/system.hh')
-rw-r--r--sim/system.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/system.hh b/sim/system.hh
index c4ecc9458..ed78eb3d4 100644
--- a/sim/system.hh
+++ b/sim/system.hh
@@ -77,6 +77,9 @@ class System : public SimObject
/** pal symbol table */
SymbolTable *palSymtab;
+ /** all symbols table */
+ SymbolTable *allSymtab;
+
/** Object pointer for the kernel code */
ObjectFile *kernel;
@@ -118,7 +121,7 @@ class System : public SimObject
template <class T>
T *System::addFuncEvent(SymbolTable *symtab, const char *lbl)
{
- Addr addr;
+ Addr addr = 0; // initialize only to avoid compiler warning
if (symtab->findAddress(lbl, addr)) {
T *ev = new T(&pcEventQueue, lbl, fixFuncEventAddr(addr));