Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Don Howard <dhoward@redhat.com>
Cc: Daniel Jacobowitz <dmj+@andrew.cmu.edu>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] mips fp register display
Date: Sat, 23 Jun 2001 11:03:00 -0000	[thread overview]
Message-ID: <3B34D9D4.3000500@cygnus.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0106220738380.1135-100000@theotherone>

>>
>> On the other hand, I think that perhaps if FR is set
>> REGISTER_RAW_SIZE (regnum) ought to be 4.  Isn't that what it means?

> 
> It seems to me that REGISTER_VIRTUAL_SIZE() is the macro that should provide
> this info, as the raw register doesn't change.  Neither of these check the FR
> bit.


FYI,  REGISTER_RAW_SIZE() returns the number of bytes used to store the targets _raw_

register.  When a MIPS3/4/5 is executing MIPS2 code, the raw FP register still contains

64 bits.  It is just that only the low 32 bits is being used.  This is 
very like a 64 bit MIPS cpu running a 32 bit program.  This typically 
only occures in embedded environments.

With regard to REGISTER_RAW_SIZE and REGISTER_CONVERT_TO_TYPE.  They are 
about to be deprecated .... (see TODO).  The methods 
gdbarch_register_{read,write} were recently added and they really clean 
up that mess.  I wouldn't be too worried about using them here.

	Andrew


>> Also, we already have REGISTER_CONVERT_TO_TYPE.  Rather than hacking in
>> a third or perhaps fourth copy of this sort of thing, why not extend
>> REGISTER_CONVERT_TO_TYPE?
> 
> 
> I would guess (I'm no authority though) that REGISTER_CONVERT_TO_VIRTUAL() and
> REGISTER_CONVERT_TO_RAW() might be better places to do this.
> 
> I chose to implement a new read_fp_register() function so that insight could
> benifit from the fix also.  print_register() and do_register_row() affect cli
> gdb only.






  reply	other threads:[~2001-06-23 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-21 14:41 Don Howard
2001-06-21 16:01 ` Daniel Jacobowitz
2001-06-22 10:26   ` Don Howard
2001-06-23 11:03     ` Andrew Cagney [this message]
2001-06-23 11:09 ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2001-05-10 10:48 [RFA] Mips " Don Howard
2001-03-27  1:01 Don Howard

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=3B34D9D4.3000500@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=dhoward@redhat.com \
    --cc=dmj+@andrew.cmu.edu \
    --cc=gdb-patches@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