summaryrefslogtreecommitdiff
path: root/src/arch/sparc/isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-12-07 18:45:30 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-12-07 18:45:30 -0500
commit41051f35acc36c0401eaf7312a284aef17e0f882 (patch)
tree7a0515dd8e5df69b7213fe219ce731ecd8afecce /src/arch/sparc/isa
parent015873fa863bb5b84e3f6b826422007272e9921d (diff)
downloadgem5-41051f35acc36c0401eaf7312a284aef17e0f882.tar.xz
Make branches handle the lack of a symbol table or the lack of a symbol gracefully.
--HG-- extra : convert_revision : 7bb16405999b86f9fa082a6d44da43d346edc182
Diffstat (limited to 'src/arch/sparc/isa')
-rw-r--r--src/arch/sparc/isa/formats/branch.isa6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/sparc/isa/formats/branch.isa b/src/arch/sparc/isa/formats/branch.isa
index 5fb7ade2d..3062f38b2 100644
--- 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();
}