Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

MIPS: kernel: Remove $0 clobber from `mult_sh_align_mod'

Remove rubbish $0 clobber added to inline asm within `mult_sh_align_mod'
with the removal of support for GCC versions below 3.4 made with commit
57810ecb581a ("MIPS: Remove GCC_IMM_ASM & GCC_REG_ACCUM macros").

Previously a macro was used that, depending on GCC version, expanded to
either `accum' or $0. Since the latter choice was only a placeholder to
keep the syntax consistent and the register referred is hardwired, there
is no point in having it here as it has no effect on code generation.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Maciej W. Rozycki and committed by
Thomas Bogendoerfer
a163a96d 71451b71

+1 -1
+1 -1
arch/mips/kernel/r4k-bugs64.c
··· 91 91 ".set pop" 92 92 : "=&r" (lv1), "=r" (lw) 93 93 : "r" (m1), "r" (m2), "r" (s), "I" (0) 94 - : "hi", "lo", "$0"); 94 + : "hi", "lo"); 95 95 /* We have to use single integers for m1 and m2 and a double 96 96 * one for p to be sure the mulsidi3 gcc's RTL multiplication 97 97 * instruction has the workaround applied. Older versions of