This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC]: Changes to move dcache above target vector functions.
- To: jtc at redback dot com
- Subject: Re: [RFC]: Changes to move dcache above target vector functions.
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Wed, 13 Sep 2000 13:08:52 -0400
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat , Inc. - Toronto
- References: <5mlmx24pjo.fsf@jtc.redback.com>
"J.T. Conklin" wrote:
>
> * There is a BDM reset command in ocd.c that needs to flush the cache.
> Do I want to expose target_dcache so it can call dcache_invalidate()?
> It seems like an abstraction barrier violation to me. Do I want to
> provide a function that invalidates on all dcaches that have been
> created? Perhaps "reset" is really a higher level command that should
> be accessed through a target vector function?
>
Several of us seem to have the same problem: we need a gdb "reset" command (for
embedded targets) which would invalidate register and other caches.
Having a to_reset entry is one step, but we probably need a remote protocol message
as well. We could un-deprecate "r" and/or define "R" a little better.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299