From a1ca8377c9067cfe4f3af399b29e938b6e50020c Mon Sep 17 00:00:00 2001 From: kub Date: Tue, 16 Mar 2021 21:35:37 +0100 Subject: [PATCH] sh2 drc, fix oversize blocks ending with JSR/BSR --- cpu/sh2/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2