Skip to content

Commit ff66f72

Browse files
isakiisaki
authored andcommitted
m68k/fpe: Add a missing return.
FMOVE.P FPn,<ea> now raises SIGFPE. (Our FPE doesn't support .P)
1 parent f85c9b9 commit ff66f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sys/arch/m68k/fpe/fpu_fstore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: fpu_fstore.c,v 1.14 2013/03/26 11:30:21 isaki Exp $ */
1+
/* $NetBSD: fpu_fstore.c,v 1.15 2025/01/03 05:42:50 isaki Exp $ */
22

33
/*
44
* Copyright (c) 1995 Ken Nakata
@@ -26,7 +26,7 @@
2626
*/
2727

2828
#include <sys/cdefs.h>
29-
__KERNEL_RCSID(0, "$NetBSD: fpu_fstore.c,v 1.14 2013/03/26 11:30:21 isaki Exp $");
29+
__KERNEL_RCSID(0, "$NetBSD: fpu_fstore.c,v 1.15 2025/01/03 05:42:50 isaki Exp $");
3030

3131
#include <sys/types.h>
3232
#include <sys/signal.h>
@@ -79,7 +79,7 @@ fpu_emul_fstore(struct fpemu *fe, struct instruction *insn)
7979
#if DEBUG_FPE
8080
printf(" fpu_emul_fstore: invalid format %d\n", format);
8181
#endif
82-
sig = SIGFPE;
82+
return SIGFPE;
8383
}
8484
#if DEBUG_FPE
8585
printf(" fpu_emul_fstore: format %d, size %d\n",

0 commit comments

Comments
 (0)