Re: [PATCH 1/3] hw/mips/jazz: Fix modifying QOM class internal state from instance

2023-05-23 Thread Richard Henderson
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 MIPSCPUClass 'no_data_aborts' field in the instance machine_init() handler, set it in the machine

[PATCH 1/3] hw/mips/jazz: Fix modifying QOM class internal state from instance

2023-05-22 Thread Philippe Mathieu-Daudé
QOM object instance should not modify its class state (because all other objects instanciated from this class get affected). Instead of modifying the MIPSCPUClass 'no_data_aborts' field in the instance machine_init() handler, set it in the machine class_init handler. Since 2 machines require this,