Re: [RFC PATCH] target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize()

2025-03-06 Thread Philippe Mathieu-Daudé
On 15/1/25 00:13, Philippe Mathieu-Daudé wrote: 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é

Re: [RFC PATCH] target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize()

2025-01-15 Thread Richard Henderson
On 1/14/25 15:13, Philippe Mathieu-Daudé wrote: 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é

[RFC PATCH] target/openrisc: Call cpu_openrisc_clock_init() in cpu_realize()

2025-01-14 Thread Philippe Mathieu-Daudé
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é --- hw/openrisc/openrisc_sim.c | 2 -- hw/openris