Article View: gnu.gdb.bug
Article #9997opcode table fixes for MIPS gdb
From: Bruce Bauman
Date: Thu, 27 Sep 1990 21:56
Date: Thu, 27 Sep 1990 21:56
72 lines
3345 bytes
3345 bytes
We (OSF) are using a version of gdb based on Per Bothner's patches to
gdb 3.5 for the DECstation. Here are some fixes to mips-opcode.h which
fix the incorrect disassembly of the mfc1, cfc1, and ctc1
instructions. Also, the cvt.d.w and cvt.s.w instructions were missing
altogether - they are added here.
Apply the following context diff to your version. Line numbers may be
off slightly because of an edit history kept in our version:
*** new-mips-opcode.h Thu Sep 27 17:50:10 1990
--- mips-opcode.h Thu Sep 27 17:49:16 1990
***************
*** 126,134 ****
"f" funct: function field
for fpu
! "S" fs source 1 register
"T" ft source 2 register
! "D" destination register
*/
#define one(x) (x << 26)
--- 108,116 ----
"f" funct: function field
for fpu
! "S" fs soruce 1 register
"T" ft source 2 register
! "D" distination register
*/
#define one(x) (x << 26)
***************
*** 220,229 ****
{"rfe", op_rs_func(16, 0x10, 16),
op_rs_func(0x3f, 0x1f, 0xf), ""},
! {"mfc1", op_rs_b11 (17, 0, 0), op_rs_b11(0x3f, 0x1f, 0), "t,S"},
! {"cfc1", op_rs_b11 (17, 2, 0), op_rs_b11(0x3f, 0x1f, 0), "t,S"},
{"mtc1", op_rs_b11 (17, 4, 0), op_rs_b11(0x3f, 0x1f, 0), "t,S"},
! {"ctc1", op_rs_b11 (17, 6, 0), op_rs_b11(0x3f, 0x1f, 0), "t,S"},
{"bc1f", op_o16(17, 0x100), op_o16(0x3f, 0x3ff), "b"},
{"bc1f", op_o16(17, 0x180), op_o16(0x3f, 0x3ff), "b"},
--- 202,211 ----
{"rfe", op_rs_func(16, 0x10, 16),
op_rs_func(0x3f, 0x1f, 0xf), ""},
! {"mfc1", op_rs_b11 (17, 0, 0), op_rs_b11(0x3f, 0x1f, 0), "T,d"},
! {"cfc1", op_rs_b11 (17, 2, 0), op_rs_b11(0x3f, 0x1f, 0), "t,d"},
{"mtc1", op_rs_b11 (17, 4, 0), op_rs_b11(0x3f, 0x1f, 0), "t,S"},
! {"ctc1", op_rs_b11 (17, 6, 0), op_rs_b11(0x3f, 0x1f, 0), "t,d"},
{"bc1f", op_o16(17, 0x100), op_o16(0x3f, 0x3ff), "b"},
{"bc1f", op_o16(17, 0x180), op_o16(0x3f, 0x3ff), "b"},
***************
*** 263,275 ****
op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
{"cvt.s.d", op_rs_func(17, 0x11, 32),
op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
- {"cvt.s.w", op_rs_func(17, 0x14, 32),
- op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
{"cvt.d.s", op_rs_func(17, 0x10, 33),
op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
{"cvt.d.d", op_rs_func(17, 0x11, 33),
- op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
- {"cvt.d.w", op_rs_func(17, 0x14, 33),
op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
{"cvt.w.s", op_rs_func(17, 0x10, 36),
op_rs_func(0x3f, 0x1f, 0x1f003f), "D,S"},
--- 245,253 ----
Technical Details
Message-ID:
<BOOT.90Sep27175612@donald.osf.org>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mercury.cair.du.edu!pikes!uakari.primate.wisc.edu!dali.cs.montana.edu!rpi!julius.cs.uiuc.edu!apple!snorkelwacker!paperboy!paperboy.osf.org!bootShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,4bed413b1467fd7f,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-09-27 23:21:51 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mercury.cair.du.edu!pikes!uakari.primate.wisc.edu!dali.cs.montana.edu!rpi!julius.cs.uiuc.edu!apple!snorkelwacker!paperboy!paperboy.osf.org!boot From: boot@donald.osf.org (Bruce Bauman) Newsgroups: gnu.gdb.bug Subject: opcode table fixes for MIPS gdb Message-ID: <BOOT.90Sep27175612@donald.osf.org> Date: 27 Sep 90 21:56:12 GMT Sender: news@OSF.ORG Reply-To: boot@osf.org Distribution: gnu Organization: Open Software Foundation Lines: 72 Posted: Thu Sep 27 22:56:12 1990