diff options
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 15500a6c73..6f9fe33d3e 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -298,7 +298,12 @@ void _decode_opc(DisasContext * ctx) case 0x0009: /* nop */ return; case 0x001b: /* sleep */ - assert(0); /* XXXXX */ + if (ctx->memidx) { + gen_op_sleep(); + } else { + gen_op_raise_illegal_instruction(); + ctx->bstate = BS_EXCP; + } return; } |