Re: [PATCH 10/15] memory: Replace current_machine by qdev_get_machine()

2020-01-13 Thread Alistair Francis
On Sun, Jan 12, 2020 at 11:45 PM Philippe Mathieu-Daudé wrote: > > On 1/12/20 10:48 AM, Alistair Francis wrote: > > On Thu, Jan 9, 2020 at 11:29 PM Philippe Mathieu-Daudé > > wrote: > >> > >> As we want to remove the global current_machine, > >> replace 'current_machine' by MACHINE(qdev_get_machi

Re: [PATCH 10/15] memory: Replace current_machine by qdev_get_machine()

2020-01-12 Thread Philippe Mathieu-Daudé
On 1/12/20 10:48 AM, Alistair Francis wrote: On Thu, Jan 9, 2020 at 11:29 PM Philippe Mathieu-Daudé wrote: As we want to remove the global current_machine, replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- memory.c | 4 +++- 1 file changed

Re: [PATCH 10/15] memory: Replace current_machine by qdev_get_machine()

2020-01-12 Thread Alistair Francis
On Thu, Jan 9, 2020 at 11:29 PM Philippe Mathieu-Daudé wrote: > > As we want to remove the global current_machine, > replace 'current_machine' by MACHINE(qdev_get_machine()). > > Signed-off-by: Philippe Mathieu-Daudé > --- > memory.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >

[PATCH 10/15] memory: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/memory.c b/memory.c index d7b9bb6951..57e38b1f50 100644 --- a/memor