target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 14 Jan 2025 23:07:23 +0000 (00:07 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 6 Mar 2025 14:46:18 +0000 (15:46 +0100)
commitbefd818b58c8522f573b8831df820f121bfe642a
treea89928f22a3082780da2517501f0d97ee274aad0
parent40b839cb840ce032c8f048325b486d3284f1b68f
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>
hw/openrisc/openrisc_sim.c
hw/openrisc/virt.c
target/openrisc/cpu.c