Skip to content

Commit 96b80fc

Browse files
committed
parisc/unaligned: Fix emulate_ldw() breakage
The commit e8aa7b1 broke the 32-bit load-word unalignment exception handler because it calculated the wrong amount of bits by which the value should be shifted. This patch fixes it. Signed-off-by: Helge Deller <[email protected]> Fixes: e8aa7b1 ("parisc/unaligned: Rewrite inline assembly of emulate_ldw()") Cc: [email protected] # v5.18
1 parent 03c765b commit 96b80fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/unaligned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static int emulate_ldw(struct pt_regs *regs, int toreg, int flop)
146146
" depw %%r0,31,2,%4\n"
147147
"1: ldw 0(%%sr1,%4),%0\n"
148148
"2: ldw 4(%%sr1,%4),%3\n"
149-
" subi 32,%4,%2\n"
149+
" subi 32,%2,%2\n"
150150
" mtctl %2,11\n"
151151
" vshd %0,%3,%0\n"
152152
"3: \n"

0 commit comments

Comments
 (0)