From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19252 invoked by alias); 25 Jul 2003 04:44:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19243 invoked from network); 25 Jul 2003 04:44:22 -0000 Received: from unknown (HELO alice.acmet.com) (61.11.104.16) by sources.redhat.com with SMTP; 25 Jul 2003 04:44:22 -0000 Received: from sara (localhost [127.0.0.1]) by alice.acmet.com (8.11.6/8.11.6) with SMTP id h6P4i6o07244; Fri, 25 Jul 2003 10:14:06 +0530 Message-ID: <004901c35267$49b7d780$1300a8c0@sara> From: "Saravanan J" To: Cc: References: <004a01c350ea$7e519130$1300a8c0@sara> Subject: Re: GDB5.3 for MIPS ISA32 and MIPS ISA16 Date: Fri, 25 Jul 2003 04:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-SW-Source: 2003-07/txt/msg00305.txt.bz2 > Several of the targets supported by GDB already include simulator > support for 32-bit MIPS, and several others support MIPS64 (but > possibly not the current version of the MIPS16 spec). > Take a look at sim/mips/configure.in, in particular the case statement > starting around line 107. >=20 > You'll need to create a new target which uses sim_gen=3DM16 (as some > targets already do), but which uses as its base/default machine type > some 32-bit ISA. I believe that should do the trick. Great!! i have done it. I have built it successfully. in confihure.in i have changed mips*tx39*) sim_gen=3DIGEN sim_igen_filter=3D"32,f" sim_igen_machine=3D"-M r3900" ;; to mips*tx39*) sim_gen=3DM16 sim_igen_filter=3D"32,f" sim_m16_filter=3D"16" sim_igen_machine=3D"-M mips32" sim_m16_machine=3D"-M mips16" ;; Is this OK But i have a problem in simulating.=20 The startup code is ISA32, and the other code is ISA16. Jump from ISA32 code is ISA16 code is done by instruction "Jalx" While simulating the jump has taken place, but it is not executing the ISA1= 6 instructions. It considers them as ISA32 and tries to execute it. Illegal Instruction err= or occurs. The ISA mode does not get inverted in executing "Jalx" How should i do it ? =20