Delete a redundant instruction in unaligned_access
PATCH 1/1 Delete a redundant instruction in unaligned_access
From: Zhang, Yanmin <[email protected]>
unaligned_access does fetch cr.ipsr, then calls dispatch_unaligned_handler, but dispatch_unaligned_handler fetches cr.ipsr again, so delete the first one.
The patch is against kernel 2.6.16-rc3.
---
diff -Nraup linux-2.6.16-rc3/arch/ia64/kernel/ivt.S linux-2.6.16-rc3_fix/arch/ia64/kernel/ivt.S
--- linux-2.6.16-rc3/arch/ia64/kernel/ivt.S 2006-01-25
21:54:04.000000000 +0800
+++ linux-2.6.16-rc3_fix/arch/ia64/kernel/ivt.S 2006-02-18
00:31:08.000000000 +0800
@@ -1362,7 +1362,6 @@ END(debug_vector)
// 0x5a00 Entry 30 (size 16 bundles) Unaligned Reference (57) ENTRY(unaligned_access)
DBG_FAULT(30)
- mov r16=cr.ipsr
mov r31=pr // prepare to save predicates
;;
br.sptk.many dispatch_unaligned_handler
Quoted 6 lines · Yanmin
From: Zhang, Yanmin <[email protected]>
unaligned_accessdoes fetch cr.ipsr, then callsdispatch_unaligned_handler, butdispatch_unaligned_handlerfetches cr.ipsr again, so delete the first one.
Quoted 6 lines
The patch is against kernel 2.6.16-rc3.
Signed-off-by Zhang Yanmin <[email protected]>---
I don't know why unexpected line breaks appeared. Resend the patch.
---
arch/ia64/kernel/ivt.S +0 -1
@@ -1362,7 +1362,6 @@ END(debug_vector) // 0x5a00 Entry 30 (size 16 bundles) Unaligned Reference (57) ENTRY(unaligned_access) DBG_FAULT(30) - mov r16=cr.ipsr mov r31=pr // prepare to save predicates ;; br.sptk.many dispatch_unaligned_handler