diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-15 00:07:23 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | befd818b58c8522f573b8831df820f121bfe642a (patch) | |
| tree | a89928f22a3082780da2517501f0d97ee274aad0 /hw/openrisc/virt.c | |
| parent | 40b839cb840ce032c8f048325b486d3284f1b68f (diff) | |
| download | focaccia-qemu-befd818b58c8522f573b8831df820f121bfe642a.tar.gz focaccia-qemu-befd818b58c8522f573b8831df820f121bfe642a.zip | |
target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize()
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 <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250114231304.77150-1-philmd@linaro.org>
Diffstat (limited to 'hw/openrisc/virt.c')
| -rw-r--r-- | hw/openrisc/virt.c | 2 |
1 files changed, 0 insertions, 2 deletions
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]); } |