mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 07:32:06 -06:00
tcg: Split out exec/user/guest-base.h
TCG will need this declaration, without all of the other bits that come with cpu-all.h. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a66efde188
commit
7d478306e8
3 changed files with 16 additions and 4 deletions
|
@ -84,11 +84,8 @@
|
||||||
|
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
#include "exec/user/abitypes.h"
|
#include "exec/user/abitypes.h"
|
||||||
|
#include "exec/user/guest-base.h"
|
||||||
|
|
||||||
/* On some host systems the guest address space is reserved on the host.
|
|
||||||
* This allows the guest address space to be offset to a convenient location.
|
|
||||||
*/
|
|
||||||
extern uintptr_t guest_base;
|
|
||||||
extern bool have_guest_base;
|
extern bool have_guest_base;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
12
include/exec/user/guest-base.h
Normal file
12
include/exec/user/guest-base.h
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
|
/*
|
||||||
|
* Declaration of guest_base.
|
||||||
|
* Copyright (c) 2003 Fabrice Bellard
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef EXEC_USER_GUEST_BASE_H
|
||||||
|
#define EXEC_USER_GUEST_BASE_H
|
||||||
|
|
||||||
|
extern uintptr_t guest_base;
|
||||||
|
|
||||||
|
#endif
|
|
@ -63,6 +63,9 @@
|
||||||
#include "tcg/tcg-temp-internal.h"
|
#include "tcg/tcg-temp-internal.h"
|
||||||
#include "tcg-internal.h"
|
#include "tcg-internal.h"
|
||||||
#include "accel/tcg/perf.h"
|
#include "accel/tcg/perf.h"
|
||||||
|
#ifdef CONFIG_USER_ONLY
|
||||||
|
#include "exec/user/guest-base.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Forward declarations for functions declared in tcg-target.c.inc and
|
/* Forward declarations for functions declared in tcg-target.c.inc and
|
||||||
used here. */
|
used here. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue