]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SPARC64: Respect no-fault ASI for floating exceptions
authorRob Gardner <rob.gardner@oracle.com>
Fri, 30 Oct 2015 19:18:00 +0000 (13:18 -0600)
committerAllen Pais <allen.pais@oracle.com>
Tue, 8 Nov 2016 10:18:18 +0000 (15:48 +0530)
commitc7a569f4be83c5bd392225ec9c603d7126759f75
tree3eb0d7a03700473208f6028e3809fd0e981354a9
parentfdf8e9c846df76995f80e79cdc48a8ee7ad45a57
SPARC64: Respect no-fault ASI for floating exceptions

Floating point load instructions using ASI_PNF or other
no-fault ASIs should never cause a SIGFPE. A store-quad
instruction should naturally fault if a non-quad register
is given, but this constraint should not apply to loads,
which may be single precision, double, or quad, and the
only constraint should be that the target register type
be appropriate for the precision of the load. A bug in
handle_ldf_stq() unnecessarily restricts no-fault loads
to quad registers, and causes a floating point exception
if one is not given. This restriction is removed.

Orabug: 24942761

Signed-off-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
arch/sparc/kernel/unaligned_64.c