From befd818b58c8522f573b8831df820f121bfe642a Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Wed, 15 Jan 2025 00:07:23 +0100 Subject: target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OpenRISC timer is architecturally tied to the CPU. It doesn't belong to the machine init() code to instanciate it: move its creation when a vCPU is realized (after being created). Reported-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250114231304.77150-1-philmd@linaro.org> --- hw/openrisc/virt.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/openrisc/virt.c') diff --git a/hw/openrisc/virt.c b/hw/openrisc/virt.c index 9afe407b00..3055306783 100644 --- a/hw/openrisc/virt.c +++ b/hw/openrisc/virt.c @@ -487,8 +487,6 @@ static void openrisc_virt_init(MachineState *machine) exit(1); } - cpu_openrisc_clock_init(cpus[n]); - qemu_register_reset(main_cpu_reset, cpus[n]); } -- cgit 1.4.1