]> git.hungrycats.org Git - linux/commit
[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd
authorPaul Mackerras <paulus@samba.org>
Fri, 8 Oct 2004 00:35:51 +0000 (17:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:35:51 +0000 (17:35 -0700)
commitf3d216325264e75a6f47532b058c1c72c080b113
treeb1d642b93bb7e2c7be939cde7c5fa3d4a2f4a63b
parent82cdb292604ac30a681d51ac37d739a2aed132af
[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd

There were a few places in assembly code in the ppc64 part of the
kernel where we were using the old forms of the compare instruction
(cmp, cmpi, cmpl, cmpli) which don't specify the operand size (word or
doubleword).  These have been accepted for a long time for backward
compatibility with the old POWER architecture (and defaulted to a
32-bit comparison) but are now being rejected by the latest versions
of binutils.  Some of them were actual bugs in that they were on
things which were actually 64-bit values such as pointers (not that
any of them actually caused a problem in practice).

This patch replaces cmp{,l}{,i} with cmp{,l}[wd]{,i} as appropriate.
The original patch was from Segher Boessenkool, slightly modified by
me.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/idle_power4.S
arch/ppc64/kernel/misc.S
arch/ppc64/lib/checksum.S
arch/ppc64/mm/hash_low.S