mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
Userspace guest address offsetting
Re-implement GUEST_BASE support. Offset guest ddress space by default if the guest binary contains regions below the host mmap_min_addr. Implement support for i386, x86-64 and arm hosts. Signed-off-by: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
a9ff9df188
commit
379f6698d7
13 changed files with 206 additions and 36 deletions
|
@ -46,6 +46,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "cache-utils.h"
|
||||
#include "host-utils.h"
|
||||
|
||||
/* Note: the long term plan is to reduce the dependancies on the QEMU
|
||||
CPU definitions. Currently they are used for qemu_ld/st
|
||||
|
@ -57,6 +58,9 @@
|
|||
#include "tcg-op.h"
|
||||
#include "elf.h"
|
||||
|
||||
#if defined(CONFIG_USE_GUEST_BASE) && !defined(TCG_TARGET_HAS_GUEST_BASE)
|
||||
#error GUEST_BASE not supported on this host.
|
||||
#endif
|
||||
|
||||
static void patch_reloc(uint8_t *code_ptr, int type,
|
||||
tcg_target_long value, tcg_target_long addend);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue