aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-08 11:22:29 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-08 11:22:29 +0000
commit6ecd45348408054bd7afa43a95ed5d47ba3c2809 (patch)
treee64698ff6b0dbfa9aeaa8dab30c723917b37ce06 /disas.c
parent925fb139be707fe637bdadb25138c72efcf333b5 (diff)
Fix generated code disasm output on Sparc64 host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2638 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/disas.c b/disas.c
index c583c1d4d1..c8fb2129be 100644
--- a/disas.c
+++ b/disas.c
@@ -258,6 +258,9 @@ void disas(FILE *out, void *code, unsigned long size)
print_insn = print_insn_alpha;
#elif defined(__sparc__)
print_insn = print_insn_sparc;
+#if defined(__sparc_v8plus__) || defined(__sparc_v8plusa__) || defined(__sparc_v9__)
+ disasm_info.mach = bfd_mach_sparc_v9b;
+#endif
#elif defined(__arm__)
print_insn = print_insn_arm;
#elif defined(__MIPSEB__)