On 5/29/2026 7:24 AM, Philippe Mathieu-Daudé wrote:
> Introduce a TCGCPUOps::cpu_instance_init hook and call it with
> tcg_cpu_instance_init(). Register tcg_cpu_instance_init() as
> AccelOpsClass::cpu_instance_init.
> 
> At the same time, convert X86 and RISCV AccelCPUClass hooks,
> after forward-declaring each target method (to avoid moving
> code around).
> 
> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
> ---
>  accel/tcg/tcg-accel-ops.h   | 1 +
>  include/accel/tcg/cpu-ops.h | 1 +
>  accel/tcg/cpu-exec.c        | 9 +++++++++
>  accel/tcg/tcg-accel-ops.c   | 1 +
>  target/i386/tcg/tcg-cpu.c   | 5 +++--
>  target/riscv/tcg/tcg-cpu.c  | 4 +++-
>  6 files changed, 18 insertions(+), 3 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to