Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen For aarch64eb, no SIGBUS signal for unali...



details:   https://anonhg.NetBSD.org/src/rev/827cc4a8d60b
branches:  trunk
changeset: 955825:827cc4a8d60b
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Oct 13 06:55:25 2020 +0000

description:
For aarch64eb, no SIGBUS signal for unaligned accesses.
Convert to preprocessor directives.

diffstat:

 tests/lib/libc/gen/t_siginfo.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r fdb79f4e3b4f -r 827cc4a8d60b tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Tue Oct 13 06:49:27 2020 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Tue Oct 13 06:55:25 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.41 2020/08/24 06:55:16 gson Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.42 2020/10/13 06:55:25 rin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -476,9 +476,10 @@
 
        /* m68k (except sun2) never issue SIGBUS (PR lib/49653),
         * same for armv8 or newer */
-       if (strcmp(MACHINE_ARCH, "m68k") == 0 ||
-           strcmp(MACHINE_ARCH, "aarch64") == 0)
-               atf_tc_skip("No SIGBUS signal for unaligned accesses");
+#if (defined(__m68k__) && !defined(__mc68010__)) || \
+    defined(__aarch64__)
+       atf_tc_skip("No SIGBUS signal for unaligned accesses");
+#endif
 
        sa.sa_flags = SA_SIGINFO;
        sa.sa_sigaction = sigbus_action;



Home | Main Index | Thread Index | Old Index