From: Daniel Jacobowitz <drow@false.org>
To: "Maciej W. Rozycki" <macro@mips.com>
Cc: gdb-patches@sourceware.org, "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: MIPS/Linux: Register number overlap in target descriptions
Date: Tue, 04 Dec 2007 15:10:00 -0000 [thread overview]
Message-ID: <20071204151051.GA3966@caradoc.them.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0712041447380.21152@perivale.mips.com>
On Tue, Dec 04, 2007 at 03:01:33PM +0000, Maciej W. Rozycki wrote:
> Hello,
>
> Due to the way target register numbers are assigned in the target
> description (using the last number used plus one unless overridden) we
> have two registers overlapping each other. Specifically, both "pc" and
> "f0" are assigned 37 as their number, which happens because the
> description of "f0" is provided after one of "cause", which specifies 36
> explicitly and "pc" is assigned 37 likewise. I gather it breaks register
> numbering as such too as there are places elsewhere in the code that refer
> to some registers by number literally.
No, those numberings are different. They are used for internal
register layout, but only sent to the target if there is no XML
description. So a mismatch is fine except when you're trying to
retain compatibility with legacy stubs.
Of course, I was trying. Not sure how I missed this - did it have
any symptoms?
Patch is OK. After this, I hope the register numbers line up with
mips-elf again; I think they do.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-12-04 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 15:01 Maciej W. Rozycki
2007-12-04 15:10 ` Daniel Jacobowitz [this message]
2007-12-04 15:20 ` Maciej W. Rozycki
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=20071204151051.GA3966@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=macro@linux-mips.org \
--cc=macro@mips.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