common-user: Move guest_base, have_guest_base to probe-guest-base.c
Unify the definitions of guest_base and have_guest_base. Reviewed-by: Helge Deller <deller@gmx.de> Reviewed-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -63,8 +63,7 @@ intptr_t qemu_host_page_mask;
|
|||||||
|
|
||||||
static bool opt_one_insn_per_tb;
|
static bool opt_one_insn_per_tb;
|
||||||
static unsigned long opt_tb_size;
|
static unsigned long opt_tb_size;
|
||||||
uintptr_t guest_base;
|
|
||||||
bool have_guest_base;
|
|
||||||
/*
|
/*
|
||||||
* When running 32-on-64 we should make sure we can fit all of the possible
|
* When running 32-on-64 we should make sure we can fit all of the possible
|
||||||
* guest address space into a contiguous chunk of virtual host memory.
|
* guest address space into a contiguous chunk of virtual host memory.
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "qemu/log.h"
|
#include "qemu/log.h"
|
||||||
#include "user/guest-base.h"
|
#include "user/guest-base.h"
|
||||||
#include "user/mmap-min-addr.h"
|
#include "user/mmap-min-addr.h"
|
||||||
|
#include "user/guest-base.h"
|
||||||
#include "user/guest-host.h"
|
#include "user/guest-host.h"
|
||||||
#include "user/probe-guest-base.h"
|
#include "user/probe-guest-base.h"
|
||||||
#include "user/selfmap.h"
|
#include "user/selfmap.h"
|
||||||
@@ -18,6 +19,9 @@
|
|||||||
#define MAP_FIXED_NOREPLACE (MAP_FIXED | MAP_EXCL)
|
#define MAP_FIXED_NOREPLACE (MAP_FIXED | MAP_EXCL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
uintptr_t guest_base;
|
||||||
|
bool have_guest_base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pgb_try_mmap:
|
* pgb_try_mmap:
|
||||||
* @addr: host start address
|
* @addr: host start address
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ static envlist_t *envlist;
|
|||||||
static const char *cpu_model;
|
static const char *cpu_model;
|
||||||
static const char *cpu_type;
|
static const char *cpu_type;
|
||||||
static const char *seed_optarg;
|
static const char *seed_optarg;
|
||||||
uintptr_t guest_base;
|
|
||||||
bool have_guest_base;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Used to implement backwards-compatibility for the `-strace`, and
|
* Used to implement backwards-compatibility for the `-strace`, and
|
||||||
|
|||||||
Reference in New Issue
Block a user