projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
015873f
)
Make branches handle the lack of a symbol table or the lack of a symbol gracefully.
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 7 Dec 2006 23:45:30 +0000
(18:45 -0500)
committer
Gabe Black
<gblack@eecs.umich.edu>
Thu, 7 Dec 2006 23:45:30 +0000
(18:45 -0500)
--HG--
extra : convert_revision :
7bb16405999b86f9fa082a6d44da43d346edc182
src/arch/sparc/isa/formats/branch.isa
patch
|
blob
|
history
diff --git
a/src/arch/sparc/isa/formats/branch.isa
b/src/arch/sparc/isa/formats/branch.isa
index 5fb7ade2da5d5b25ec8e5831a9ddaf9f8ffa5fda..3062f38b2f51bdd19c5828d867b39c0bd307a09b 100644
(file)
--- a/
src/arch/sparc/isa/formats/branch.isa
+++ b/
src/arch/sparc/isa/formats/branch.isa
@@
-170,7
+170,7
@@
output decoder {{
printMnemonic(response, mnemonic);
ccprintf(response, "0x%x", target);
- if(symtab->findNearestSymbol(target, symbol, symbolAddr))
+ if(symtab
&& symtab
->findNearestSymbol(target, symbol, symbolAddr))
{
ccprintf(response, " <%s", symbol);
if(symbolAddr != target)
@@
-178,6
+178,10
@@
output decoder {{
else
ccprintf(response, ">");
}
+ else
+ {
+ ccprintf(response, "<%d>", target);
+ }
return response.str();
}