aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2000-08-18 22:52:23 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2000-08-18 22:52:23 +0000
commite99586d56aa63911e842a974bd8eb7ed20da7af0 (patch)
treea238bf79710b18dfe2b5a0e9927666591f7d8134 /gdb/ocd.c
parent3f0845370f8c14bfd7c196a2d9c2451c2789e355 (diff)
downloadgdb-e99586d56aa63911e842a974bd8eb7ed20da7af0.zip
gdb-e99586d56aa63911e842a974bd8eb7ed20da7af0.tar.gz
gdb-e99586d56aa63911e842a974bd8eb7ed20da7af0.tar.bz2
* MAINTAINERS: Add myself as dcache.c maintainer.
* remote-nindy.c (nindy_load): Invalidate dcache. * dcache.c (dcache_invd): Renamed from dcache_flush. The term flush with respect to caches usually implies that data will be written to memory. (dcache_init, dcache_xfer_memory): Updated. * monitor.c (flush_monitor_dcache, monitor_resume, monitor_load): Updated. * ocd.c (ocd_open, ocd_resume, bdm_reset_command): Updated. * remote-bug.c (bug_load, bug_resume): Updated. * remote-nindy.c (nindy_open, nindy_resume): Updated. * remote-sds.c (sds_open, sds_resume): Updated. * remote-utils.c (gr_open): Updated. * remote.c (remote_open_1, remote_resume, remote_async_resume, remote_cisco_open): Updated. * wince.c (child_create_inferior, child_resume): Updated. * monitor.c (monitor_open): Free dcache before creating a new one. * dcache.c (dcache_free): New function. * dcache.h (dcache_free): New prototype. -------------------------------------------------------------------
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r--gdb/ocd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 5c29919..6dd601e 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -295,7 +295,7 @@ device the OCD device is attached to (e.g. /dev/ttya).");
if (!ocd_dcache)
ocd_dcache = dcache_init (ocd_read_bytes, ocd_write_bytes);
else
- dcache_flush (ocd_dcache);
+ dcache_invd (ocd_dcache);
if (strncmp (name, "wiggler", 7) == 0)
{
@@ -387,7 +387,7 @@ ocd_resume (int pid, int step, enum target_signal siggnal)
{
int pktlen;
- dcache_flush (ocd_dcache);
+ dcache_invd (ocd_dcache);
if (step)
ocd_do_command (OCD_STEP, &last_run_status, &pktlen);
@@ -1318,7 +1318,7 @@ bdm_reset_command (char *args, int from_tty)
error ("Not connected to OCD device.");
ocd_do_command (OCD_RESET, &status, &pktlen);
- dcache_flush (ocd_dcache);
+ dcache_invd (ocd_dcache);
registers_changed ();
}