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

View File

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