From: cgd@broadcom.com
To: sharan@acmet.com
Cc: gdb@sources.redhat.com
Subject: Re: GDB5.3 for MIPS ISA32 and MIPS ISA16
Date: Fri, 25 Jul 2003 05:30:00 -0000 [thread overview]
Message-ID: <yov5smov18dr.fsf@ldt-sj3-010.sj.broadcom.com> (raw)
In-Reply-To: <mailpost.1059108281.26583@news-sj1-1>
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
prev parent reply other threads:[~2003-07-25 5:30 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
[not found] ` <mailpost.1059108281.26583@news-sj1-1>
2003-07-25 5:30 ` cgd [this message]
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=yov5smov18dr.fsf@ldt-sj3-010.sj.broadcom.com \
--to=cgd@broadcom.com \
--cc=gdb@sources.redhat.com \
--cc=sharan@acmet.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