aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-04-15 16:03:15 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-04-15 16:05:41 -0700
commitf00b50d057298ac581cb222c0ab4b5e21d134464 (patch)
tree91d31bab667d83f568528adba9c9e4c7dcb294c5 /sim
parent10737236a0fd768ba207d23f451505c85a35d60e (diff)
downloadgdb-f00b50d057298ac581cb222c0ab4b5e21d134464.zip
gdb-f00b50d057298ac581cb222c0ab4b5e21d134464.tar.gz
gdb-f00b50d057298ac581cb222c0ab4b5e21d134464.tar.bz2
sim frv: Add a missing return value for frvbf_check_acc_range.
Claim that the accumulator indices are out of range without raising an exception if the CPU doesn't support media instructions. sim/frv/ChangeLog: * traps.c (frvbf_check_acc_range): Add missing return value.
Diffstat (limited to 'sim')
-rw-r--r--sim/frv/ChangeLog4
-rw-r--r--sim/frv/traps.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog
index 1ec0597..88c8992 100644
--- a/sim/frv/ChangeLog
+++ b/sim/frv/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-15 John Baldwin <jhb@FreeBSD.org>
+
+ * traps.c (frvbf_check_acc_range): Add missing return value.
+
2021-04-12 Mike Frysinger <vapier@gentoo.org>
* sim-if.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
diff --git a/sim/frv/traps.c b/sim/frv/traps.c
index c0ed9b1..5e6a4d0 100644
--- a/sim/frv/traps.c
+++ b/sim/frv/traps.c
@@ -742,7 +742,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;
+ return 0;
/* 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