From 63bb46b6d8028ed9c759e4bd0822dd2ad25c926b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 20 Nov 2005 18:42:12 -0500 Subject: Serialize the symbol tables base/loader/symtab.cc: Add support for clearing out the symbol table Add support for serializing the symbol table (clear on unserialize) Don't allow empty symbols to be entered into the table base/loader/symtab.hh: Add support for clearing out the symbol table Add support for serializing the symbol table sim/system.cc: Serialize the kernel, console, and palcode symbol tables so that we can capture any dynamic symbols that are added and so that we don't have to have the same kernel binary around to get the symbols right --HG-- extra : convert_revision : 779888c88aa530f3adcd37dc7600a335951d05f7 --- sim/system.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sim') diff --git a/sim/system.cc b/sim/system.cc index e67cae333..c91d7f142 100644 --- a/sim/system.cc +++ b/sim/system.cc @@ -333,6 +333,10 @@ void System::serialize(ostream &os) { kernelBinning->serialize(os); + + kernelSymtab->serialize("kernel_symtab", os); + consoleSymtab->serialize("console_symtab", os); + palSymtab->serialize("pal_symtab", os); } @@ -340,6 +344,10 @@ void System::unserialize(Checkpoint *cp, const string §ion) { kernelBinning->unserialize(cp, section); + + kernelSymtab->unserialize("kernel_symtab", cp, section); + consoleSymtab->unserialize("console_symtab", cp, section); + palSymtab->unserialize("pal_symtab", cp, section); } void -- cgit v1.2.3