QOM object instance should not modify its class state (because
all other objects instanciated from this class get affected).
Instead of modifying the PPCE500MachineClass 'mpic_version' field
in the instance machine_init() handler, set it in the machine
class init handler (e500plat_machine_class_init).
Inspired-by: Bernhard Beschow<shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
hw/ppc/e500plat.c | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)