Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Saravanan J" <sharan@acmet.com>
To: <cgd@broadcom.com>
Cc: <gdb@sources.redhat.com>
Subject: Re: GDB5.3 for MIPS ISA32 and MIPS ISA16
Date: Fri, 25 Jul 2003 04:44:00 -0000	[thread overview]
Message-ID: <004901c35267$49b7d780$1300a8c0@sara> (raw)
In-Reply-To: <yov5vfttkxkz.fsf@ldt-sj3-010.sj.broadcom.com>

> 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.
> 
> You'll need to create a new target which uses sim_gen=M16 (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=IGEN
   sim_igen_filter="32,f"
   sim_igen_machine="-M r3900"
   ;;

to

  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

But i have a problem in simulating. 

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 ISA16 instructions.
It considers them as ISA32 and tries to execute it. Illegal Instruction error occurs.

The ISA mode does not get inverted in executing "Jalx"

How should i do it ?

 



  reply	other threads:[~2003-07-25  4:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23  7:25 Saravanan J
     [not found] ` <mailpost.1058945163.5959@news-sj1-1>
2003-07-23 16:38   ` cgd
2003-07-25  4:44     ` Saravanan J [this message]
     [not found]       ` <mailpost.1059108281.26583@news-sj1-1>
2003-07-25  5:30         ` cgd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004901c35267$49b7d780$1300a8c0@sara' \
    --to=sharan@acmet.com \
    --cc=cgd@broadcom.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox