* [PATCH v2] MIPS: Separate two consecutive loads in memset.S
@ 2010-11-10 13:48 Tony Wu
2010-11-10 14:09 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Tony Wu @ 2010-11-10 13:48 UTC (permalink / raw)
To: linux-mips, ralf
partial_fixup is used in noreorder block.
Separating two consecutive loads can save one cycle on processors with
GPR intrelock and can fix load-use on processors that need a load delay slot.
Also do so for fwd_fixup.
Signed-off-by: Tony Wu <tung7970@gmail.com>
---
arch/mips/lib/memset.S | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/lib/memset.S b/arch/mips/lib/memset.S
index 77dc3b2..606c8a9 100644
--- a/arch/mips/lib/memset.S
+++ b/arch/mips/lib/memset.S
@@ -161,16 +161,16 @@ FEXPORT(__bzero)
.Lfwd_fixup:
PTR_L t0, TI_TASK($28)
- LONG_L t0, THREAD_BUADDR(t0)
andi a2, 0x3f
+ LONG_L t0, THREAD_BUADDR(t0)
LONG_ADDU a2, t1
jr ra
LONG_SUBU a2, t0
.Lpartial_fixup:
PTR_L t0, TI_TASK($28)
- LONG_L t0, THREAD_BUADDR(t0)
andi a2, LONGMASK
+ LONG_L t0, THREAD_BUADDR(t0)
LONG_ADDU a2, t1
jr ra
LONG_SUBU a2, t0
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] MIPS: Separate two consecutive loads in memset.S
2010-11-10 13:48 [PATCH v2] MIPS: Separate two consecutive loads in memset.S Tony Wu
@ 2010-11-10 14:09 ` Ralf Baechle
2010-11-10 23:30 ` Maciej W. Rozycki
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2010-11-10 14:09 UTC (permalink / raw)
To: Tony Wu; +Cc: linux-mips
On Wed, Nov 10, 2010 at 09:48:15PM +0800, Tony Wu wrote:
This new version applies cleanly, so applied.
Only R2000/R3000 class processors are lacking the the load-user interlock
and even some of those got it retrofitted. With R2000/R3000 being fairly
uncommon these days the impact of this bug should be minor but the last
R3000 DECstation user on this list may be interested ;-)
Thanks a lot!
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] MIPS: Separate two consecutive loads in memset.S
2010-11-10 14:09 ` Ralf Baechle
@ 2010-11-10 23:30 ` Maciej W. Rozycki
0 siblings, 0 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2010-11-10 23:30 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Tony Wu, linux-mips
On Wed, 10 Nov 2010, Ralf Baechle wrote:
> Only R2000/R3000 class processors are lacking the the load-user interlock
> and even some of those got it retrofitted. With R2000/R3000 being fairly
> uncommon these days the impact of this bug should be minor but the last
> R3000 DECstation user on this list may be interested ;-)
Good catch Tony, thanks!
Maciej
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-10 23:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-10 13:48 [PATCH v2] MIPS: Separate two consecutive loads in memset.S Tony Wu
2010-11-10 14:09 ` Ralf Baechle
2010-11-10 23:30 ` Maciej W. Rozycki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.