[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for 6.2 39/49] bsd-user: Need to reset CPU after creation.
From: |
Warner Losh |
Subject: |
[PATCH for 6.2 39/49] bsd-user: Need to reset CPU after creation. |
Date: |
Sat, 7 Aug 2021 15:42:32 -0600 |
From: Warner Losh <imp@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 36852604f8..08f88d9668 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -405,8 +405,10 @@ int main(int argc, char **argv)
accel_init_interfaces(ac);
ac->init_machine(NULL);
}
+
cpu = cpu_create(cpu_type);
env = cpu->env_ptr;
+ cpu_reset(cpu);
thread_cpu = cpu;
if (getenv("QEMU_STRACE")) {
--
2.32.0