diff options
author | Alan Modra <amodra@gmail.com> | 2015-07-03 10:56:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-07-10 19:58:27 +0930 |
commit | bfad89ef1b4bdd72e4ec27ceb44b677399304d53 (patch) | |
tree | a07ed5455f283733caa8d4ce8e53e27a1fbd4f95 /gas | |
parent | 4e8fee9042c5d47dbaec08b2c0c36bca0ba8545b (diff) | |
download | gdb-bfad89ef1b4bdd72e4ec27ceb44b677399304d53.zip gdb-bfad89ef1b4bdd72e4ec27ceb44b677399304d53.tar.gz gdb-bfad89ef1b4bdd72e4ec27ceb44b677399304d53.tar.bz2 |
Remove ppc860, ppc750cl, ppc7450 insns from common ppc.
Back in the day support for these processors was added, we probably
didn't want to waste PPC_OPCODE bits on minor variations. I've had a
complaint that disassembly of mfspr/mtspr was wrong for power8. This
patch fixes that problem.
Note that since -m860/-m850/-m821 are new gas options enabling the
mpc8xx specific mfspr/mtspr variants it is possible that this change
will break some mpc8xx assembly code. ie. you might need to modify
makefiles to pass -m860 to gas.
include/opcode/
* ppc.h (PPC_OPCODE_750, PPC_OPCODE_7450, PPC_OPCODE_860): Define.
opcodes/
* ppc-opc.c (PPC750, PPC7450, PPC860): Define using PPC_OPCODE_*.
* ppc-dis.c (ppc_opts): Add 821, 850 and 860 entries. Add
PPC_OPCODE_7450 to 7450 entry. Add PPC_OPCODE_750 to 750cl entry.
gas/
* config/tc-ppc.c (md_show_usage): Add -m821, -m850, -m860.
* doc/c-ppc.texi (PowerPC-Opts): Likewise.
gas/testsuite/
* gas/ppc/titan.d: Correct mfmcsrr0 disassembly.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 3 | ||||
-rw-r--r-- | gas/doc/c-ppc.texi | 3 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/titan.d | 4 |
5 files changed, 14 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6ca5067..0b165dc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,6 +1,10 @@ 2015-07-10 Alan Modra <amodra@gmail.com> Apply from master + 2015-07-03 Alan Modra <amodra@gmail.com> + * config/tc-ppc.c (md_show_usage): Add -m821, -m850, -m860. + * doc/c-ppc.texi (PowerPC-Opts): Likewise. + 2015-06-19 Peter Bergner <bergner@vnet.ibm.com> * config/tc-ppc.c (md_assemble): Use ppc_optional_operand_value. Allow for optional operands without insert functions. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 00e20f9..1b1a33c 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1281,7 +1281,8 @@ PowerPC options:\n\ -m476 generate code for PowerPC 476\n\ -m7400, -m7410, -m7450, -m7455\n\ generate code for PowerPC 7400/7410/7450/7455\n\ --m750cl generate code for PowerPC 750cl\n")); +-m750cl generate code for PowerPC 750cl\n\ +-m821, -m850, -m860 generate code for PowerPC 821/850/860\n")); fprintf (stream, _("\ -mppc64, -m620 generate code for PowerPC 620/625/630\n\ -mppc64bridge generate code for PowerPC 64, including bridge insns\n\ diff --git a/gas/doc/c-ppc.texi b/gas/doc/c-ppc.texi index c457a50..d5f5b76 100644 --- a/gas/doc/c-ppc.texi +++ b/gas/doc/c-ppc.texi @@ -75,6 +75,9 @@ Generate code for PowerPC 7400/7410/7450/7455. @item -m750cl Generate code for PowerPC 750CL. +@item -m821, -m850, -m860 +Generate code for PowerPC 821/850/860. + @item -mppc64, -m620 Generate code for PowerPC 620/625/630. diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index c6d27eb..4d7e338 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,6 +1,9 @@ 2015-07-10 Alan Modra <amodra@gmail.com> Apply from master + 2015-07-03 Alan Modra <amodra@gmail.com> + * gas/ppc/titan.d: Correct mfmcsrr0 disassembly. + 2015-06-22 Peter Bergner <bergner@vnet.ibm.com> * gas/ppc/e6500.s <sync>: Fix invalid test. * gas/ppc/e6500.d: Likewise. diff --git a/gas/testsuite/gas/ppc/titan.d b/gas/testsuite/gas/ppc/titan.d index 45c41bb..e54715a 100644 --- a/gas/testsuite/gas/ppc/titan.d +++ b/gas/testsuite/gas/ppc/titan.d @@ -229,8 +229,8 @@ Disassembly of section \.text: 36c: (7c 9f 62 a6|a6 62 9f 7c) mfivor15 r4 370: (7c 93 82 a6|a6 82 93 7c) mfivor35 r4 374: (7c 93 82 a6|a6 82 93 7c) mfivor35 r4 - 378: (7c 9a 8a a6|a6 8a 9a 7c) mfdc_dat r4 - 37c: (7c 9a 8a a6|a6 8a 9a 7c) mfdc_dat r4 + 378: (7c 9a 8a a6|a6 8a 9a 7c) mfmcsrr0 r4 + 37c: (7c 9a 8a a6|a6 8a 9a 7c) mfmcsrr0 r4 380: (7c 9b 8a a6|a6 8a 9b 7c) mfmcsrr1 r4 384: (7c 9b 8a a6|a6 8a 9b 7c) mfmcsrr1 r4 388: (7c 9c 8a a6|a6 8a 9c 7c) mfmcsr r4 |