From: Alan Modra Date: Wed, 16 Aug 2023 13:12:44 +0000 (+0930) Subject: Re: sim frv: Add a missing return value for frvbf_check_acc_range. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=880802688cf7322c50994716456d05499e8c0d4d;p=binutils-gdb.git Re: sim frv: Add a missing return value for frvbf_check_acc_range. 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. --- diff --git a/sim/frv/traps.c b/sim/frv/traps.c index dda066faec3..aee1f0e741a 100644 --- a/sim/frv/traps.c +++ b/sim/frv/traps.c @@ -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