On 5/22/23 23:44, Philippe Mathieu-Daudé wrote:
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<shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
  hw/ppc/e500plat.c | 25 +++++++++++--------------
  1 file changed, 11 insertions(+), 14 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to