Commit 8e0f950d89b1e708e07481005515ef26e9a7b4da

Authored by pbrook
1 parent ade25b0d

Stop translation after a syscall instruciton.

Signed-off-by: Paul Brook <paul@codesourcery.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7124 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
target-mips/translate.c
@@ -7697,6 +7697,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -7697,6 +7697,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
7697 break; 7697 break;
7698 case OPC_SYSCALL: 7698 case OPC_SYSCALL:
7699 generate_exception(ctx, EXCP_SYSCALL); 7699 generate_exception(ctx, EXCP_SYSCALL);
  7700 + ctx->bstate = BS_STOP;
7700 break; 7701 break;
7701 case OPC_BREAK: 7702 case OPC_BREAK:
7702 generate_exception(ctx, EXCP_BREAK); 7703 generate_exception(ctx, EXCP_BREAK);