From: Jeremy Bennett <jeremy.bennett@embecosm.com>
To: gdb@sourceware.org
Subject: Advice on architecture with a very large register bank
Date: Fri, 18 Jul 2008 18:13:00 -0000 [thread overview]
Message-ID: <1216400133.3530.25.camel@thomas> (raw)
I'm updating GDB for the OpenRISC 1000 architecture. This has 32 general
purpose registers and nearly 25,000 special purpose registers (SPRs) -
12 banks of 2048.
The special purpose registers cover processor status, MMU control (TLB's
match registers, translation registers), caches, debug via JTAG etc.
They are loaded and stored by two privileged instructions and are *not*
memory mapped.
How should I best handle these in GDB? Since they form part of the state
of the machine, they should be visible. However if I declare them as
registers (which they are), I presume regcache will be huge and
performance terrible.
I could add commands just to display and set SPR's (the current
solution), but this then precludes their use in other GDB contexts. I
also can't see how to implement this within the target operations
structure, so that it would work via the Remote Serial Protocol.
If anyone else has experience of architectures with huge register banks,
I'll be very interested to hear how you deal with this issue.
Thanks,
Jeremy
-
Tel: +44 (1202) 416955
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com
reply other threads:[~2008-07-18 16:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1216400133.3530.25.camel@thomas \
--to=jeremy.bennett@embecosm.com \
--cc=gdb@sourceware.org \
/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