diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-02-20 20:08:26 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-31 15:47:49 +0200 |
commit | 15a3204d24a3c01b116fb7c0692b7c670cac631d (patch) | |
tree | c5f46ce738a1044d00b647f0d967c336cc303c62 /arch/powerpc/lib/copypage_power7.S | |
parent | powerpc/64s: Explicitly add vector features to CPU_FTRS_POSSIBLE (diff) | |
download | linux-15a3204d24a3c01b116fb7c0692b7c670cac631d.tar.xz linux-15a3204d24a3c01b116fb7c0692b7c670cac631d.zip |
powerpc/64s: Set assembler machine type to POWER4
Rather than override the machine type in .S code (which can hide wrong
or ambiguous code generation for the target), set the type to power4
for all assembly.
This also means we need to be careful not to build power4-only code
when we're not building for Book3S, such as the "power7" versions of
copyuser/page/memcpy.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fix Book3E build, don't build the "power7" variants for non-Book3S]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/lib/copypage_power7.S')
-rw-r--r-- | arch/powerpc/lib/copypage_power7.S | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/lib/copypage_power7.S b/arch/powerpc/lib/copypage_power7.S index ca5fc8fa7efc..8fa73b7ab20e 100644 --- a/arch/powerpc/lib/copypage_power7.S +++ b/arch/powerpc/lib/copypage_power7.S @@ -42,8 +42,6 @@ _GLOBAL(copypage_power7) lis r8,0x8000 /* GO=1 */ clrldi r8,r8,32 -.machine push -.machine "power4" /* setup read stream 0 */ dcbt 0,r4,0b01000 /* addr from */ dcbt 0,r7,0b01010 /* length and depth from */ @@ -52,7 +50,6 @@ _GLOBAL(copypage_power7) dcbtst 0,r10,0b01010 /* length and depth to */ eieio dcbt 0,r8,0b01010 /* all streams GO */ -.machine pop #ifdef CONFIG_ALTIVEC mflr r0 |