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:42:46 +0000 (11:42 +0100)
commit646b532f32eafff0e3cda1ece4da1091b936cf88
tree4f7c725f5fc2398057c821a5c096a36fb7770247
parent397b5433f7420376149220780e0fdd57bff8cc39
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