sh2 drc, fix oversize blocks ending with JSR/BSR
authorkub <derkub@gmail.com>
Tue, 16 Mar 2021 20:35:37 +0000 (21:35 +0100)
committerkub <derkub@gmail.com>
Tue, 16 Mar 2021 20:42:50 +0000 (21:42 +0100)
cpu/sh2/compiler.c

index fecff87..ba28284 100644 (file)
@@ -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);