From 880802688cf7322c50994716456d05499e8c0d4d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 16 Aug 2023 22:42:44 +0930 Subject: [PATCH] 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. --- sim/frv/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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