[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for 6.2 45/49] bsd-user: Make guest_base an unsigned long
From: |
Warner Losh |
Subject: |
[PATCH for 6.2 45/49] bsd-user: Make guest_base an unsigned long |
Date: |
Sat, 7 Aug 2021 15:42:38 -0600 |
From: Warner Losh <imp@FreeBSD.org>
Make the guest_base a plan, uneigned long rather than a uintptr_t. It
isn't really a pointer.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 08f88d9668..c8fafa78d0 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -49,9 +49,9 @@
#include "target_arch_cpu.h"
int singlestep;
-uintptr_t guest_base;
static const char *cpu_model;
static const char *cpu_type;
+unsigned long guest_base;
bool have_guest_base;
#if (TARGET_LONG_BITS == 32) && (HOST_LONG_BITS == 64)
/*
@@ -440,7 +440,7 @@ int main(int argc, char **argv)
g_free(target_environ);
if (qemu_loglevel_mask(CPU_LOG_PAGE)) {
- qemu_log("guest_base %p\n", (void *)guest_base);
+ qemu_log("guest_base 0x%lx\n", guest_base);
log_page_dump("binary load");
qemu_log("start_brk 0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
--
2.32.0
- Re: [PATCH for 6.2 37/49] bsd-user: update debugging in mmap.c, (continued)
[PATCH for 6.2 38/49] bsd-user: Update mapping to handle reserved and starting conditions, Warner Losh, 2021/08/07
[PATCH for 6.2 40/49] bsd-user: Add target_arch_reg to describe a target's register set, Warner Losh, 2021/08/07
[PATCH for 6.2 41/49] bsd-user: Add target_os_user.h to capture the user/kernel structures, Warner Losh, 2021/08/07
[PATCH for 6.2 45/49] bsd-user: Make guest_base an unsigned long,
Warner Losh <=
[PATCH for 6.2 46/49] bsd-user: move qemu_log to later in the file, Warner Losh, 2021/08/07
[PATCH for 6.2 48/49] bsd-user: Implement cpu_copy() helper routine, Warner Losh, 2021/08/07
[PATCH for 6.2 43/49] bsd-user: elfload.c style catch up patch, Warner Losh, 2021/08/07
[PATCH for 6.2 44/49] bsd-user: Refactor load_elf_sections and is_target_elf_binary, Warner Losh, 2021/08/07