openrisc: terminate qemu process upon receiving a halt signal.
PATCH 1/1 openrisc: terminate qemu process upon receiving a halt signal.
or1ksim simulator currently handles "l.nop 0xC" instruction as a halt signal. Do the same for QEMU.
Signed-off-by Hesham ALMatary <[email protected]>
--- target-openrisc/translate.c | 5 +++++ 1 file changed, 5 insertions(+)
target-openrisc/translate.c +5 -0
@@ -750,6 +750,11 @@ static void dec_misc(DisasContext *dc, uint32_t insn)switch (op1) {case 0x01 :/* l.nop */ LOG_DIS ("l.nop %d\n" ,I16 ); + +if (I16 ==0xC ) { +exit (0 ); + } +break ;default :
Signature · 1 line
2.1.0