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
class_init handler. Since 2 machines require this, share the
common code in a new machine_class_ignore_data_abort() helper.
Inspired-by: Bernhard Beschow<shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
hw/mips/jazz.c | 41 +++++++++++++++++++++++------------------
1 file changed, 23 insertions(+), 18 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~