[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for 6.2 36/49] bsd-user: Make cpu_model and cpu_type visible to a
From: |
Warner Losh |
Subject: |
[PATCH for 6.2 36/49] bsd-user: Make cpu_model and cpu_type visible to all of main.c |
Date: |
Sat, 7 Aug 2021 15:42:29 -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>
---
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 7e20430fb7..93ef9298b8 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -51,6 +51,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;
@@ -197,8 +199,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 for 6.2 31/49] bsd-user: Remove dead #ifdefs from elfload.c, (continued)
- [PATCH for 6.2 31/49] bsd-user: Remove dead #ifdefs from elfload.c, Warner Losh, 2021/08/07
- [PATCH for 6.2 32/49] bsd-user: *BSD specific siginfo defintions, Warner Losh, 2021/08/07
- [PATCH for 6.2 33/49] bsd-user: Rewrite target system call definintion glue, Warner Losh, 2021/08/07
- [PATCH for 6.2 34/49] bsd-user: Fix initializtion of task state, Warner Losh, 2021/08/07
- [PATCH for 6.2 36/49] bsd-user: Make cpu_model and cpu_type visible to all of main.c,
Warner Losh <=
- [PATCH for 6.2 35/49] bsd-user: remove error_init, Warner Losh, 2021/08/07
- [PATCH for 6.2 39/49] bsd-user: Need to reset CPU after creation., Warner Losh, 2021/08/07
- [PATCH for 6.2 42/49] bsd-user: add stubbed out core dump support, Warner Losh, 2021/08/07