Skip to contentSkip to conversation

Delete a redundant instruction in unaligned_access

PATCH In review Zhang, Yanmin 1 participant 2 messages Feb 17, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Yanmin

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.

Quoted 6 lines

The patch is against kernel 2.6.16-rc3.

---

I don't know why unexpected line breaks appeared. Resend the patch.

---

arch/ia64/kernel/ivt.S +0 -1
diff -Nraup linux-2.6.16-rc3/arch/ia64/kernel/ivt.S linux-2.6.16-rc3_fix/arch/ia64/kernel/ivt.S
@@ -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