From 4a5dcc37bfb26c152c195061fa70c7aa246b5ca6 Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Thu, 6 May 2004 15:21:07 -0400 Subject: Whole mess'o'changes.. see individual files arch/alpha/vtophys.cc: Removed buggy code that tries to fix PAL addresses (may cause problems while trying to debug in PAL code, but that should do this fix outside of vtophys) base/loader/symtab.cc: base/loader/symtab.hh: cpu/exetrace.cc: Changed InstExec traces to always print a symbol name dev/ide_ctrl.cc: dev/ide_disk.cc: Tabs dev/ide_disk.hh: Change buffer size dev/tsunami_pchip.cc: Fix translatePciToDma to support scatter gather mapping kern/linux/linux_system.cc: Force simulator to wait until remote debugger attaches (should be removed or turned on/off with a flag) --HG-- extra : convert_revision : 1d08aebe3f448c87a963dd613de3e2e0cff0d48d --- base/loader/symtab.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'base/loader/symtab.hh') diff --git a/base/loader/symtab.hh b/base/loader/symtab.hh index 49a811018..1502e4250 100644 --- a/base/loader/symtab.hh +++ b/base/loader/symtab.hh @@ -29,14 +29,14 @@ #ifndef __SYMTAB_HH__ #define __SYMTAB_HH__ -#include "base/hashmap.hh" +#include #include "targetarch/isa_traits.hh" // for Addr class SymbolTable { private: - typedef m5::hash_map ATable; - typedef m5::hash_map STable; + typedef std::map ATable; + typedef std::map STable; ATable addrTable; STable symbolTable; @@ -49,6 +49,7 @@ class SymbolTable bool insert(Addr address, std::string symbol); bool load(const std::string &file); + bool findNearestSymbol(Addr address, std::string &symbol) const; bool findSymbol(Addr address, std::string &symbol) const; bool findAddress(const std::string &symbol, Addr &address) const; -- cgit v1.2.3