On 9/12/21 10:27 AM, Philippe Mathieu-Daudé wrote:
We're moving the hook from CPUState to TCGCPUOps. TCGCPUOps is
a const structure, so to avoid creating multiple versions of
the same structure, simply changing the has_work() handler,
introduce yet another indirection with a has_work() handler in
PowerPCCPUClass, and ppc_cpu_has_work() method which dispatch
to it.

Signed-off-by: Philippe Mathieu-Daudé<f4...@amsat.org>
---
  target/ppc/cpu-qom.h  |  1 +
  target/ppc/cpu_init.c | 23 ++++++++++++++---------
  2 files changed, 15 insertions(+), 9 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to