]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: sim frv: Add a missing return value for frvbf_check_acc_range.
authorAlan Modra <amodra@gmail.com>
Wed, 16 Aug 2023 13:12:44 +0000 (22:42 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Aug 2023 12:14:04 +0000 (21:44 +0930)
Commit f00b50d057 went the wrong way.  As the comment says this
function is only applicable to fr550.  If not fr550 return 1,
meaning we don't have acc restrictions.

sim/frv/traps.c

index dda066faec3165b450bb2d8a5f9cc64c64c0cb48..aee1f0e741ac22cb394267cb9a4e2c9f52a6a16c 100644 (file)
@@ -747,7 +747,7 @@ frvbf_check_acc_range (SIM_CPU *current_cpu, SI regno)
   /* Only applicable to fr550 */
   SIM_DESC sd = CPU_STATE (current_cpu);
   if (STATE_ARCHITECTURE (sd)->mach != bfd_mach_fr550)
-    return 0;
+    return 1;
 
   /* On the fr550, media insns in slots 0 and 2 can only access
      accumulators acc0-acc3. Insns in slots 1 and 3 can only access