[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 32/43] bsd-user: Make cpu_model and cpu_type visible to all of
From: |
imp |
Subject: |
[PATCH v2 32/43] bsd-user: Make cpu_model and cpu_type visible to all of main.c |
Date: |
Thu, 26 Aug 2021 15:11:50 -0600 |
From: Warner Losh <imp@FreeBSD.org>
cpu_model and cpu_type will be used future commits, so move them from
main() scoped to file scoped.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
---
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 f6643896f6..57669ad7b7 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -52,6 +52,8 @@
int singlestep;
unsigned long mmap_min_addr;
uintptr_t guest_base;
+static const char *cpu_model;
+static const char *cpu_type;
bool have_guest_base;
unsigned long reserved_va;
@@ -198,8 +200,6 @@ static void save_proc_pathname(char *argv0)
int main(int argc, char **argv)
{
const char *filename;
- const char *cpu_model;
- const char *cpu_type;
const char *log_file = NULL;
const char *log_mask = NULL;
struct target_pt_regs regs1, *regs = ®s1;
--
2.32.0
- [PATCH v2 16/43] bsd-user: add host-os.h, (continued)
- [PATCH v2 16/43] bsd-user: add host-os.h, imp, 2021/08/26
- [PATCH v2 18/43] bsd-user: save the path to the qemu emulator, imp, 2021/08/26
- [PATCH v2 19/43] bsd-user: start to move target CPU functions to target_arch*, imp, 2021/08/26
- [PATCH v2 22/43] bsd-user: Include more things in qemu.h, imp, 2021/08/26
- [PATCH v2 28/43] bsd-user: Add system independent stack, data and text limiting, imp, 2021/08/26
- [PATCH v2 20/43] bsd-user: Move per-cpu code into target_arch_cpu.h, imp, 2021/08/26
- [PATCH v2 24/43] bsd-user: Create target specific vmparam.h, imp, 2021/08/26
- [PATCH v2 26/43] bsd-user: *BSD specific siginfo defintions, imp, 2021/08/26
- [PATCH v2 21/43] bsd-user: pull in target_arch_thread.h update target_arch_elf.h, imp, 2021/08/26
- [PATCH v2 32/43] bsd-user: Make cpu_model and cpu_type visible to all of main.c,
imp <=
- [PATCH v2 33/43] bsd-user: update debugging in mmap.c, imp, 2021/08/26
- [PATCH v2 39/43] bsd-user: move qemu_log to later in the file, imp, 2021/08/26
- [PATCH v2 29/43] bsd-user: elf cleanup, imp, 2021/08/26
- [PATCH v2 31/43] bsd-user: Rewrite target system call definintion glue, imp, 2021/08/26
- [PATCH v2 25/43] bsd-user: Add architecture specific signal tramp code, imp, 2021/08/26
- [PATCH v2 27/43] bsd-user: Move stack initializtion into a per-os file., imp, 2021/08/26
- [PATCH v2 34/43] bsd-user: Add target_arch_reg to describe a target's register set, imp, 2021/08/26
- [PATCH v2 30/43] bsd-user: Remove dead #ifdefs from elfload.c, imp, 2021/08/26