Re: [RFC PATCH v2 7/8] cpu: Move CPUClass::has_work() to TCGCPUOps

2021-03-04 Thread David Gibson
On Thu, Mar 04, 2021 at 11:23:22PM +0100, Philippe Mathieu-Daudé wrote: > We can only check if a vCPU has work with TCG. > Restrict the has_work() handler to TCG by moving it to > the TCGCPUOps structure, and adapt all the targets. > > cpu_common_has_work() is removed as being inlined in > cpu_has

[RFC PATCH v2 7/8] cpu: Move CPUClass::has_work() to TCGCPUOps

2021-03-04 Thread Philippe Mathieu-Daudé
We can only check if a vCPU has work with TCG. Restrict the has_work() handler to TCG by moving it to the TCGCPUOps structure, and adapt all the targets. cpu_common_has_work() is removed as being inlined in cpu_has_work(). Reviewed-by: Taylor Simpson Signed-off-by: Philippe Mathieu-Daudé --- v2