summaryrefslogtreecommitdiff
path: root/gdb/dcache.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-08-20 22:30:11 +0000
committerDoug Evans <dje@google.com>2009-08-20 22:30:11 +0000
commit4e12420e932f8787c5f31def9747485743cbf041 (patch)
treeacf6b2b5da2211d745f2b05fb155ad6fd223f8c3 /gdb/dcache.h
parent58c1947009d5ef89c24930cc5a8b62825b1caa29 (diff)
downloadgdb-4e12420e932f8787c5f31def9747485743cbf041.tar.gz
Replace dcache with splay tree.
Remove partially implemented writeback support. * dcache.c: Include splay-tree.h. (LINE_SIZE_POWER): Change from 5 to 6. (DCACHE_SIZE): Change from 64 to 4096. (ENTRY_INVALID, ENTRY_VALID, ENTRY_DIRTY): Delete. (state_chars): Delete. (struct dcache_block): Clean up; remove state and anydirty fields. (struct dcache_struct): Redefine as a splay tree and linked list. (last_cache): Make static. (dcache_invalidate, dcache_hit): Rewrite for new cache structure. (dcache_read_line, dcache_alloc): Rewrite for new cache structure. (dcache_write_line): Delete. (dcache_writeback): Delete. (dcache_peek_byte): Clean up; remove "invalid" state check. (dcache_poke_byte): Rewrite for new cache structure; clarify comment. (dcache_splay_tree_compare): New function. (dcache_init, dcache_free): Rewrite for new cache structure. (dcache_xfer_memory): Rewrite for new write-through cache structure. (dcache_print_line): New function. (dcache_info): Rewrite for new cache structure. (_initialize_dcache): Update "info dcache" help text. * dcache.h (dcache_xfer_memory): Update declaration. * target.c (memory_xfer_partial): Update calls to dcache_xfer_memory.
Diffstat (limited to 'gdb/dcache.h')
-rw-r--r--gdb/dcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dcache.h b/gdb/dcache.h
index 32077a6b552..3f7400cbdbb 100644
--- a/gdb/dcache.h
+++ b/gdb/dcache.h
@@ -35,7 +35,7 @@ void dcache_free (DCACHE *);
/* Simple to call from <remote>_xfer_memory */
-int dcache_xfer_memory (DCACHE *cache, CORE_ADDR mem, gdb_byte *my,
- int len, int should_write);
+int dcache_xfer_memory (struct target_ops *ops, DCACHE *cache, CORE_ADDR mem,
+ gdb_byte *my, int len, int should_write);
#endif /* DCACHE_H */