summaryrefslogtreecommitdiff
path: root/gdb/remote-nindy.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@redback.com>2000-08-18 22:52:23 +0000
committerJ.T. Conklin <jtc@redback.com>2000-08-18 22:52:23 +0000
commitad343a427754692e45f6f39ac4c96e99f8ea900f (patch)
tree22a1f151b3eae7573a33809ebcae83bfd0187970 /gdb/remote-nindy.c
parenta68db28134a266e0ba35d4c2352adfcc0cc92fa9 (diff)
downloadgdb-ad343a427754692e45f6f39ac4c96e99f8ea900f.tar.gz
* 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/remote-nindy.c')
-rw-r--r--gdb/remote-nindy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index adf148473d1..807000db739 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -191,7 +191,7 @@ nindy_open (char *name, /* "/dev/ttyXX", "ttyXX", or "XX": tty to be opened */
if (!nindy_dcache)
nindy_dcache = dcache_init (ninMemGet, ninMemPut);
else
- dcache_flush (nindy_dcache);
+ dcache_invd (nindy_dcache);
/* Allow user to interrupt the following -- we could hang if there's
no NINDY at the other end of the remote tty. */
@@ -269,7 +269,7 @@ nindy_resume (int pid, int step, enum target_signal siggnal)
if (siggnal != TARGET_SIGNAL_0 && siggnal != stop_signal)
warning ("Can't send signals to remote NINDY targets.");
- dcache_flush (nindy_dcache);
+ dcache_invd (nindy_dcache);
if (regs_changed)
{
nindy_store_registers (-1);
@@ -614,6 +614,8 @@ nindy_load (char *filename, int from_tty)
}
}
bfd_close (file);
+
+ dcache_invd(nindy_dcache);
}
static int