sim: mips: fix qh_acc table

Message ID 20210502011820.31320-1-vapier@gentoo.org
State New
Headers show
Series
  • sim: mips: fix qh_acc table
Related show

Commit Message

Mike Frysinger via Gdb-patches May 2, 2021, 1:18 a.m.
The AccAddLQH func was unused, and looking at this table, it looks
like it's due to a typo.
---
 sim/mips/mdmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Patch

diff --git a/sim/mips/mdmx.c b/sim/mips/mdmx.c
index 00b6d4faa09a..948bb0d2ebe5 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
 };