diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-16 22:42:44 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-17 21:44:04 +0930 |
commit | 880802688cf7322c50994716456d05499e8c0d4d (patch) | |
tree | 6c1e1ebd119dc4dcabc48bd3d252bbf67ae6e54e /sim/frv | |
parent | 6feae66da1d652a50c1759bae46128087f7dfab0 (diff) | |
download | fsf-binutils-gdb-880802688cf7322c50994716456d05499e8c0d4d.zip fsf-binutils-gdb-880802688cf7322c50994716456d05499e8c0d4d.tar.gz fsf-binutils-gdb-880802688cf7322c50994716456d05499e8c0d4d.tar.bz2 |
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.
Diffstat (limited to 'sim/frv')
-rw-r--r-- | sim/frv/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/frv/traps.c b/sim/frv/traps.c index dda066f..aee1f0e 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 |