diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-28 18:12:52 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-28 18:12:52 -0500 |
commit | b6fba57065d42f12274e83d885a3af048e2daa78 (patch) | |
tree | 62cc0cac418a3e2fe10df6d716e925dad04605e6 /cpu | |
parent | 3ccc0b1f968e3efaeccda65e06f862c899678312 (diff) | |
download | gem5-b6fba57065d42f12274e83d885a3af048e2daa78.tar.xz |
our first interrupt
cpu/exetrace.cc:
added looking for symbols at PC+4 and PC+8 thanks to gcc skiping
setting the gp where it can and jumping <func>+8
dev/console.cc:
commented out weird interrupt per nate's suggestion
dev/tsunami_cchip.cc:
moved rtc flag to correct bit
dev/tsunami_io.cc:
time interrupt will be 1024Hz and at some point be configurable by
linux
dev/tsunami_io.hh:
Timer interrupt will be 1024hz for now and in the future be
configurable by linux
--HG--
extra : convert_revision : 2fcc924c8848eb3c6166d9d517617ed193a2b89a
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/exetrace.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc index a72242232..4d3a70f37 100644 --- a/cpu/exetrace.cc +++ b/cpu/exetrace.cc @@ -67,8 +67,12 @@ Trace::InstRecord::dump(ostream &outs) std::string str; - if(debugSymbolTable->findSymbol(data.as_int, str)) + if(debugSymbolTable->findSymbol(PC, str)) outs << "@" << setw(17) << str << " : "; + else if(debugSymbolTable->findSymbol(PC - 4, str)) + outs << "@" << setw(15) << str << "+4 : "; + else if(debugSymbolTable->findSymbol(PC - 8, str)) + outs << "@" << setw(15) << str << "+8 : "; else outs << "0x" << hex << PC << " : "; |