]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
bsd-user: Remove bsd_type
authorWarner Losh <imp@bsdimp.com>
Sun, 30 Jan 2022 19:02:53 +0000 (12:02 -0700)
committerWarner Losh <imp@bsdimp.com>
Sat, 26 Feb 2022 17:01:38 +0000 (10:01 -0700)
Remove keeping track of which type of bsd we're running on. It's no
longer referenced in the code. Building bsd-user on NetBSD or OpenBSD
isn't possible, let alone running that code. Stop pretending that we can
do the cross BSD thing since there's been a large divergence since 2000
that makes this nearly impossible between FreeBSD and {Net,Open}BSD and
at least quite difficult between NetBSD and OpenBSD.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/main.c
bsd-user/qemu.h

index bddb830e99bcc6b6ee852813e30c5d0a1872582e..88d347d05ebf0962020ea0a0245708b498f42b19 100644 (file)
@@ -96,7 +96,6 @@ unsigned long reserved_va;
 
 static const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;
 const char *qemu_uname_release;
-enum BSDType bsd_type;
 char qemu_proc_pathname[PATH_MAX];  /* full path to exeutable */
 
 unsigned long target_maxtsiz = TARGET_MAXTSIZ;   /* max text size */
@@ -284,7 +283,6 @@ int main(int argc, char **argv)
     const char *gdbstub = NULL;
     char **target_environ, **wrk;
     envlist_t *envlist = NULL;
-    bsd_type = HOST_DEFAULT_BSD_TYPE;
     char *argv0 = NULL;
 
     adjust_ssize();
index 02921ac8b3b7f4600aea8848adf958837ea93316..e5742bd6c0357190bf088aea483f1b296600c857 100644 (file)
 
 extern char **environ;
 
-enum BSDType {
-    target_freebsd,
-    target_netbsd,
-    target_openbsd,
-};
-extern enum BSDType bsd_type;
-
 #include "exec/user/thunk.h"
 #include "target_arch.h"
 #include "syscall_defs.h"