On 19/10/2018 03:06, Emilio G. Cota wrote: > Soon we will call cpu_has_work without the BQL. > > Cc: David Gibson <da...@gibson.dropbear.id.au> > Cc: Alexander Graf <ag...@suse.de> > Cc: qemu-...@nongnu.org > Signed-off-by: Emilio G. Cota <c...@braap.org> > --- > target/ppc/translate_init.inc.c | 77 +++++++++++++++++++++++++++++++-- > 1 file changed, 73 insertions(+), 4 deletions(-) >
Perhaps we should instead define both ->cpu_has_work and ->cpu_has_work_with_iothread_lock members, and move the generic unlock/relock code to common code? Paolo