Re: [PATCH 12/15] accel: Introduce the current_accel() method

2020-01-13 Thread Alistair Francis
On Fri, Jan 10, 2020 at 1:27 AM Philippe Mathieu-Daudé wrote: > > We want to remove the global current_machine. The accel/ > code access few times current_machine->accelerator. Introduce > the current_accel() method first, it will then be easier to > replace 'current_machine' by MACHINE(qdev_get_m

[PATCH 12/15] accel: Introduce the current_accel() method

2020-01-09 Thread Philippe Mathieu-Daudé
We want to remove the global current_machine. The accel/ code access few times current_machine->accelerator. Introduce the current_accel() method first, it will then be easier to replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/ac