mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
Really remove unnecessary power9 group terminating nop
Oops, not tested well enough. -mpower9 sets all the PPC_OPCODE_POWERn for n <= 9. * config/tc-ppc.c (ppc_handle_align): Correct last patch. Really don't emit a group terminating nop for power9. Simplify cpu tests.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2018-03-08 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* config/tc-ppc.c (ppc_handle_align): Correct last patch. Really
|
||||||
|
don't emit a group terminating nop for power9. Simplify cpu
|
||||||
|
tests.
|
||||||
|
|
||||||
2018-03-08 Alan Modra <amodra@gmail.com>
|
2018-03-08 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* config/tc-ppc.c (ppc_handle_align): Don't emit a group
|
* config/tc-ppc.c (ppc_handle_align): Don't emit a group
|
||||||
|
@ -6549,8 +6549,7 @@ ppc_handle_align (struct frag *fragP)
|
|||||||
md_number_to_chars (dest, 0x60000000, 4);
|
md_number_to_chars (dest, 0x60000000, 4);
|
||||||
|
|
||||||
if ((ppc_cpu & PPC_OPCODE_POWER6) != 0
|
if ((ppc_cpu & PPC_OPCODE_POWER6) != 0
|
||||||
|| (ppc_cpu & PPC_OPCODE_POWER7) != 0
|
&& (ppc_cpu & PPC_OPCODE_POWER9) == 0)
|
||||||
|| (ppc_cpu & PPC_OPCODE_POWER8) != 0)
|
|
||||||
{
|
{
|
||||||
/* For power6, power7, and power8, we want the last nop to
|
/* For power6, power7, and power8, we want the last nop to
|
||||||
be a group terminating one. Do this by inserting an
|
be a group terminating one. Do this by inserting an
|
||||||
@ -6570,8 +6569,7 @@ ppc_handle_align (struct frag *fragP)
|
|||||||
dest = group_nop->fr_literal;
|
dest = group_nop->fr_literal;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ppc_cpu & PPC_OPCODE_POWER7) != 0
|
if ((ppc_cpu & PPC_OPCODE_POWER7) != 0)
|
||||||
|| (ppc_cpu & PPC_OPCODE_POWER8) != 0)
|
|
||||||
{
|
{
|
||||||
if (ppc_cpu & PPC_OPCODE_E500MC)
|
if (ppc_cpu & PPC_OPCODE_E500MC)
|
||||||
/* e500mc group terminating nop: "ori 0,0,0". */
|
/* e500mc group terminating nop: "ori 0,0,0". */
|
||||||
|
Reference in New Issue
Block a user