parisc/unaligned: Fix ldw() and stw() unalignment handlers
authorHelge Deller <deller@gmx.de>
Fri, 18 Feb 2022 22:40:14 +0000 (23:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:33:53 +0000 (11:33 +0100)
commit2f3bd25d1f021494ec3fcc7eebc400e5d89ab43a
tree8272c7760e73a1dd3f17387f4c35753758268e1b
parent6fd1358b6dec0c609ca97d2b4a545e1bd19786bb
parisc/unaligned: Fix ldw() and stw() unalignment handlers

commit a97279836867b1cb50a3d4f0b1bf60e0abe6d46c upstream.

Fix 3 bugs:

a) emulate_stw() doesn't return the error code value, so faulting
instructions are not reported and aborted.

b) Tell emulate_ldw() to handle fldw_l as floating point instruction

c) Tell emulate_ldw() to handle ldw_m as integer instruction

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/unaligned.c