Skip to content

Commit 89a9fb8

Browse files
committed
cheribsdtest: Use an aligned PC value in null_pointer_exec_sigsegv
Real Morello hardware gives precedence to the unaligned PC fault and reports SIGBUS instead of SIGSEGV.
1 parent d337309 commit 89a9fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cheribsdtest/cheribsdtest_signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ CHERIBSDTEST(null_pointer_exec_sigsegv,
340340
.ct_si_code = SEGV_MAPERR,
341341
.ct_si_trapno = TRAPNO_EXEC_PF)
342342
{
343-
void (*p)(void) = (void *)(uintptr_t)1;
343+
void (*p)(void) = (void *)(uintptr_t)4;
344344

345345
p();
346346
cheribsdtest_failure_errx("Unexpected branch to NULL pointer");

0 commit comments

Comments
 (0)