From: jtc@redback.com (J.T. Conklin)
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: Memory attributes triumphs over dcache
Date: Wed, 04 Apr 2001 15:50:00 -0000 [thread overview]
Message-ID: <5mpuesnutt.fsf@jtc.redback.com> (raw)
In-Reply-To: <20010404125206.B19362@redhat.com>
>>>>> "Frank" == Frank Ch Eigler <fche@redhat.com> writes:
Frank> What got me worried is the effect of defining a memory region (with
Frank> caching but no other flags), then doing a "target remote" download.
Frank> It proceeded one byte at a time - yuck! If some combination of the
Frank> dcache and memattr system is at fault, this still needs to be
Frank> improved.
Thanks for pointing this out. dcache_write_line() was totally broken.
Can you try this out? It works fine for me, but I'm only doing small
writes. A download might be a better test.
--jtc
Index: dcache.c
===================================================================
RCS file: /cvs/src/src/gdb/dcache.c,v
retrieving revision 1.14
diff -c -r1.14 dcache.c
*** dcache.c 2001/03/06 08:21:06 1.14
--- dcache.c 2001/04/04 22:32:57
***************
*** 278,297 ****
while (reg_len > 0)
{
s = XFORM(memaddr);
! do {
if (db->state[s] == ENTRY_DIRTY)
break;
s++;
reg_len--;
- } while (reg_len > 0);
e = s;
! do {
if (db->state[e] != ENTRY_DIRTY)
break;
e++;
reg_len--;
! } while (reg_len > 0);
dirty_len = e - s;
while (dirty_len > 0)
--- 278,301 ----
while (reg_len > 0)
{
s = XFORM(memaddr);
! while (reg_len > 0) {
if (db->state[s] == ENTRY_DIRTY)
break;
s++;
reg_len--;
+ memaddr++;
+ myaddr++;
+ len--;
+ }
+
e = s;
! while (reg_len > 0) {
if (db->state[e] != ENTRY_DIRTY)
break;
e++;
reg_len--;
! }
dirty_len = e - s;
while (dirty_len > 0)
***************
*** 304,309 ****
--- 308,314 ----
memset (&db->state[XFORM(memaddr)], ENTRY_OK, res);
memaddr += res;
myaddr += res;
+ len -= res;
dirty_len -= res;
}
}
--
J.T. Conklin
RedBack Networks
prev parent reply other threads:[~2001-04-04 15:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-03 12:08 Frank Ch. Eigler
2001-04-03 18:24 ` J.T. Conklin
2001-04-04 9:52 ` Frank Ch. Eigler
[not found] ` <5mg0fownmb.fsf@jtc.redback.com>
2001-04-04 14:19 ` Stan Shebs
2001-04-04 15:50 ` J.T. Conklin [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=5mpuesnutt.fsf@jtc.redback.com \
--to=jtc@redback.com \
--cc=fche@redhat.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