]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/64e: Convert cmpi to cmpwi in head_64.S
authorNicholas Piggin <npiggin@gmail.com>
Wed, 23 Nov 2016 13:02:07 +0000 (00:02 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:22:02 +0000 (08:22 +0100)
commite451d674bac550e2f311fe18abe36345f826470a
tree8f98990a2009af0784b19131f5fde0fc90993f66
parent0349fbebd9847dfaea56e172be50b41380c300bd
powerpc/64e: Convert cmpi to cmpwi in head_64.S

commit f87f253bac3ce4a4eb2a60a1ae604d74e65f9042 upstream.

From 80f23935cadb ("powerpc: Convert cmp to cmpd in idle enter sequence"):

  PowerPC's "cmp" instruction has four operands. Normally people write
  "cmpw" or "cmpd" for the second cmp operand 0 or 1. But, frequently
  people forget, and write "cmp" with just three operands.

  With older binutils this is silently accepted as if this was "cmpw",
  while often "cmpd" is wanted. With newer binutils GAS will complain
  about this for 64-bit code. For 32-bit code it still silently assumes
  "cmpw" is what is meant.

In this case, cmpwi is called for, so this is just a build fix for
new toolchains.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/head_64.S