[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/24] bsd-user: style tweak: if 0 -> ifdef notyet for code needed
From: |
imp |
Subject: |
[PULL 12/24] bsd-user: style tweak: if 0 -> ifdef notyet for code needed in future |
Date: |
Fri, 23 Apr 2021 14:39:47 -0600 |
From: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index ff886de98e..91603f5ac2 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -245,7 +245,7 @@ void cpu_loop(CPUX86State *env)
}
break;
#endif
-#if 0
+#ifdef notyet
case EXCP0B_NOSEG:
case EXCP0C_STACK:
info.si_signo = SIGBUS;
@@ -340,7 +340,7 @@ void cpu_loop(CPUX86State *env)
case EXCP_INTERRUPT:
/* just indicate that signals should be handled asap */
break;
-#if 0
+#ifdef notyet
case EXCP_DEBUG:
{
int sig;
@@ -589,7 +589,7 @@ void cpu_loop(CPUSPARCState *env)
break;
case TT_TFAULT:
case TT_DFAULT:
-#if 0
+#ifdef notyet
{
info.si_signo = SIGSEGV;
info.si_errno = 0;
@@ -609,7 +609,7 @@ void cpu_loop(CPUSPARCState *env)
break;
case TT_TFAULT:
case TT_DFAULT:
-#if 0
+#ifdef notyet
{
info.si_signo = SIGSEGV;
info.si_errno = 0;
@@ -629,11 +629,11 @@ void cpu_loop(CPUSPARCState *env)
break;
case EXCP_DEBUG:
{
-#if 0
+#ifdef notyet
int sig =
#endif
gdb_handlesig(cs, TARGET_SIGTRAP);
-#if 0
+#ifdef notyet
if (sig)
{
info.si_signo = sig;
--
2.22.1
[PULL 12/24] bsd-user: style tweak: if 0 -> ifdef notyet for code needed in future,
imp <=
[PULL 20/24] bsd-user: introduce host_os.h for bsd-specific code and defaults, imp, 2021/04/23
[PULL 13/24] bsd-user: style tweak: if 0 -> ifdef notyet for code needed in future, imp, 2021/04/23
[PULL 14/24] bsd-user: style tweak: if 0 -> ifdef notyet for code needed in future, imp, 2021/04/23
[PULL 15/24] bsd-user: Fix commentary issues, imp, 2021/04/23
[PULL 19/24] bsd-user: use qemu_strtol in preference to strtol, imp, 2021/04/23