[PATCH] target/nios2: Use gen_io_start/end around wrctl instruction.

2020-06-17 Thread wentongw
From: Wentong Wu wrctl instruction on nios2 target will cause checking cpu interrupt, but tcg_handle_interrupt() will call cpu_abort() if the CPU gets an interrupt while it's not in a 'can do IO' state, so around wrctl instruction add gen_io_start/end. Signed-off-by: Wentong Wu --- target/nios

[PATCH] hw/nios2: Update interrupt request when CR_STATUS_PIE disabled

2020-06-10 Thread wentongw
Update interrupt request when external interupt pends for STATUS_PIE disabled. Otherwise on icount enabled nios2 target there will be cpu abort when guest code changes state register with wrctl instruction. Signed-off-by: Wentong Wu --- hw/nios2/cpu_pic.c | 2 ++ 1 file changed, 2 insertions(+)