aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-26 04:18:42 +0000
committerAlan Modra <amodra@gmail.com>2002-07-26 04:18:42 +0000
commitdfff24c9bd7924204ba0020cc8ba014ab3984db8 (patch)
treeaae5a32b4de7a0fe3a44dcf795c9cb0450a8fca4 /gas/config/tc-ppc.c
parentd959a6abc7b6c631643e5557398d8af9c2f40983 (diff)
downloadgdb-dfff24c9bd7924204ba0020cc8ba014ab3984db8.zip
gdb-dfff24c9bd7924204ba0020cc8ba014ab3984db8.tar.gz
gdb-dfff24c9bd7924204ba0020cc8ba014ab3984db8.tar.bz2
* config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
rather than PPC_OPCODE_32 for powerpc64*.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 68f8764..f94cad5 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1070,7 +1070,12 @@ ppc_set_cpu ()
else if (strcmp (default_cpu, "rs6000") == 0)
ppc_cpu = PPC_OPCODE_POWER | PPC_OPCODE_32;
else if (strncmp (default_cpu, "powerpc", 7) == 0)
- ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_32;
+ {
+ if (default_cpu[7] == '6' && default_cpu[8] == '4')
+ ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_64;
+ else
+ ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_32;
+ }
else
as_fatal (_("Unknown default cpu = %s, os = %s"),
default_cpu, default_os);