Skip to content
Snippets Groups Projects
Commit d1dc9ab3 authored by Warner Losh's avatar Warner Losh Committed by Warner Losh
Browse files

bsd-user: Include host-os.h from main


Include host-os.h from main.c to pick up the default OS to emulate.  Set
that default in main().

Signed-off-by: default avatarStacey Son <sson@FreeBSD.org>
Signed-off-by: default avatarWarner Losh <imp@bsdimp.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent cce7ae5c
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,6 @@
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#define HOST_DEFAULT_BSD_TYPE target_freebsd
#endif /*!_HOST_OS_H_ */
......@@ -41,6 +41,8 @@
#include "exec/log.h"
#include "trace/control.h"
#include "host-os.h"
int singlestep;
unsigned long mmap_min_addr;
uintptr_t guest_base;
......@@ -352,7 +354,7 @@ int main(int argc, char **argv)
const char *gdbstub = NULL;
char **target_environ, **wrk;
envlist_t *envlist = NULL;
bsd_type = target_openbsd;
bsd_type = HOST_DEFAULT_BSD_TYPE;
if (argc <= 1) {
usage();
......
......@@ -20,4 +20,6 @@
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#define HOST_DEFAULT_BSD_TYPE target_netbsd
#endif /*!_HOST_OS_H_ */
......@@ -20,4 +20,6 @@
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#define HOST_DEFAULT_BSD_TYPE target_openbsd
#endif /*!_HOST_OS_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment