From f1d7622b957e12c8130c24fe4c46882f70b59b1c Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Thu, 10 Aug 2000 18:54:27 +0000 Subject: * monitor.c (monitor_open): If a dcache has already been created, invalidate it rather than creating another. * ocd.c (ocd_open): Likewise. * remote-nindy.c (nindy_open): Likewise. * remote-sds.c (sds_open): Likewise. * remote-utils.c (gr_open): Likewise. * remote.c (remote_open_1, remote_cisco_open): Likewise. * dcache.c (dcache_alloc): Changed to take address of line as an argument, and to invalidate cache line before returning. (dcache_peek_byte): Updated. (dcache_poke_byte): Updated. ------------------------------------------------------------------- --- gdb/ocd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/ocd.c') diff --git a/gdb/ocd.c b/gdb/ocd.c index 1a50978..5c29919 100644 --- a/gdb/ocd.c +++ b/gdb/ocd.c @@ -292,7 +292,10 @@ device the OCD device is attached to (e.g. /dev/ttya)."); unpush_target (current_ops); - ocd_dcache = dcache_init (ocd_read_bytes, ocd_write_bytes); + if (!ocd_dcache) + ocd_dcache = dcache_init (ocd_read_bytes, ocd_write_bytes); + else + dcache_flush (ocd_dcache); if (strncmp (name, "wiggler", 7) == 0) { -- cgit v1.1