Skip to content

Commit 63d5d4f

Browse files
committed
tcg: Drop the FreeBSD specific code
It looks like this isn't needed. kib@ and kevans@ say it's bogus. Drop it (fold this with older commit on next rebase). Signed-off-by: Warner Losh <imp@freebsd.org>
1 parent a77228b commit 63d5d4f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

accel/tcg/user-exec.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
274274

275275
pc = PC_sig(uc);
276276
return handle_cpu_signal(pc, info,
277-
#if defined(__FreeBSD__) || defined(__DragonFly__)
278-
(TRAP_sig(uc) == 0xe ||
279-
TRAP_sig(uc) == 0xc) ?
280-
#else
281-
TRAP_sig(uc) == 0xe ?
282-
#endif
283-
(ERROR_sig(uc) >> 1) & 1 : 0,
277+
TRAP_sig(uc) == 0xe ? (ERROR_sig(uc) >> 1) & 1 : 0,
284278
&MASK_sig(uc));
285279
}
286280

0 commit comments

Comments
 (0)