From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6205 invoked by alias); 25 Jul 2003 05:30:05 -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 6144 invoked from network); 25 Jul 2003 05:30:03 -0000 Received: from unknown (HELO mms3.broadcom.com) (63.70.210.38) by sources.redhat.com with SMTP; 25 Jul 2003 05:30:03 -0000 Received: from 63.70.210.1 by mms3.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.5.2)); Thu, 24 Jul 2003 22:30:03 -0700 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id WAA18864; Thu, 24 Jul 2003 22:29:29 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id h6P5Trov024538; Thu, 24 Jul 2003 22:29:53 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id h6P5Trc22523; Thu, 24 Jul 2003 22:29:53 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: sharan@acmet.com cc: gdb@sources.redhat.com Subject: Re: GDB5.3 for MIPS ISA32 and MIPS ISA16 References: <004a01c350ea$7e519130$1300a8c0@sara> <004901c35267$49b7d780$1300a8c0@sara> From: cgd@broadcom.com Date: Fri, 25 Jul 2003 05:30:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 133E1FD1100857-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00306.txt.bz2 At Fri, 25 Jul 2003 04:44:41 +0000 (UTC), "Saravanan J" wrote: > mips*tx39*) sim_gen=M16 > sim_igen_filter="32,f" > sim_m16_filter="16" > sim_igen_machine="-M mips32" > sim_m16_machine="-M mips16" > ;; > > Is this OK that looks reasonable comparing with the other configuration script bits, but i've never done anything with MIPS16 so i'm not sure. (obviously, if you're interested in using this long-term or want to submit it back to gdb/sim eventually, you'll want to use a different target name...) > Jump from ISA32 code is ISA16 code is done by instruction "Jalx" right. > While simulating the jump has taken place, but it is not executing the ISA16 instructions. > It considers them as ISA32 and tries to execute it. Illegal Instruction error occurs. you'll note that JALX32 (in m16.igen) attempts to adjust the value of 'nia' to be odd, and m16run.c (following the mips16 ASE, IIRC -- it's been a while since i looked) interprets that as meaning running in mips16 mode. have you verified in the code in m16run.c that the instruction address is odd and m16_instruction_word/m16_idecode_issue are being invoked? cgd