From: kub Date: Tue, 16 Mar 2021 20:35:37 +0000 (+0100) Subject: sh2 drc, fix oversize blocks ending with JSR/BSR X-Git-Tag: v2.00~583 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ca8377c9067cfe4f3af399b29e938b6e50020c;p=picodrive.git sh2 drc, fix oversize blocks ending with JSR/BSR --- diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index fecff876..ba282848 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -5108,7 +5108,7 @@ end_op: else opd = &ops[i-1]; - if (! OP_ISBRAUC(opd->op)) + if (! OP_ISBRAUC(opd->op) || (opd->dest & BITMASK1(SHR_PR))) { tmp = rcache_get_reg(SHR_SR, RC_GR_RMW, NULL); FLUSH_CYCLES(tmp);