[binutils-gdb] sim: mips: fix qh_acc table

Michael Frysinger vapier@sourceware.org
Wed May 5 01:54:41 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4df817de57014779d4c07036bcd3835f10b4ba92

commit 4df817de57014779d4c07036bcd3835f10b4ba92
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat May 1 21:17:12 2021 -0400

    sim: mips: fix qh_acc table
    
    The AccAddLQH func was unused, and looking at this table, it looks
    like it's due to a typo.

Diff:
---
 sim/mips/ChangeLog | 4 ++++
 sim/mips/mdmx.c    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 62b3b4cf2a6..ba657417eb3 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-04  Mike Frysinger  <vapier@gentoo.org>
+
+	* mdmx.c (qh_acc): Change 2nd AccAddAQH to AccAddLQH.
+
 2021-05-04  Mike Frysinger  <vapier@gentoo.org>
 
 	* configure: Regenerate.
diff --git a/sim/mips/mdmx.c b/sim/mips/mdmx.c
index 00b6d4faa09..948bb0d2ebe 100644
--- a/sim/mips/mdmx.c
+++ b/sim/mips/mdmx.c
@@ -772,7 +772,7 @@ AccAbsDiffOB(signed24 *a, unsigned8 ts, unsigned8 tt)
 /* Dispatch tables for operations that update a CPR.  */
 
 static const QH_ACC qh_acc[] = {
-  AccAddAQH, AccAddAQH, AccMulAQH, AccMulLQH,
+  AccAddAQH, AccAddLQH, AccMulAQH, AccMulLQH,
   SubMulAQH, SubMulLQH, AccSubAQH, AccSubLQH,
   NULL
 };


More information about the Gdb-cvs mailing list