Include host-os.h from main.c to pick up the default OS to emulate. Set
that default in main().
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
+#define HOST_DEFAULT_BSD_TYPE target_freebsd
+
#include "exec/log.h"
#include "trace/control.h"
#include "exec/log.h"
#include "trace/control.h"
int singlestep;
unsigned long mmap_min_addr;
uintptr_t guest_base;
int singlestep;
unsigned long mmap_min_addr;
uintptr_t guest_base;
const char *gdbstub = NULL;
char **target_environ, **wrk;
envlist_t *envlist = NULL;
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();
if (argc <= 1) {
usage();
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
+#define HOST_DEFAULT_BSD_TYPE target_netbsd
+
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
#ifndef _HOST_OS_H_
#define _HOST_OS_H_
+#define HOST_DEFAULT_BSD_TYPE target_openbsd
+