e2k: Do not generate loop_end for stores outside of loops.

Signed-off-by: Denis Drakhnya <numas13@gmail.com>
This commit is contained in:
Denis Drakhnia 2021-03-24 13:27:33 +02:00 committed by Denis Drakhnia
parent 0914c72c8b
commit 0c634e952b
1 changed files with 6 additions and 4 deletions

View File

@ -7755,10 +7755,12 @@ static void gen_loop_end_init(DisasContext *ctx)
break; break;
} }
for (i = 0; !need && i < 6; i++) { if (!need && ctx->loop_mode) {
if (is_alop_store(&ctx->alops[i])) { for (i = 0; i < 6; i++) {
need = true; if (is_alop_store(&ctx->alops[i])) {
break; need = true;
break;
}
} }
} }