This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch] Make DCACHE_LINE runtime-settable
>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
Paul> 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul> * NEWS: Mention dcache configuration.
Paul> * dcache.c (dcache_set_list, dcache_show_list): New variables.
Paul> (dcache_size, dcache_line_size): New variables.
Paul> (struct dcache_block): Make it expandable.
Paul> (struct dcache_struct): New field.
Paul> (dcache_invalidate): Discard freelist upon dcache_line_size changes.
Paul> (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
Paul> (dcache_poke_byte, dcache_print_line): Adjust.
Paul> (set_dcache_size, set_dcache_line_size): New functions.
Paul> (set_dcache_command, show_dcache_command): New functions.
Paul> (_initialize_dcache): Add new commands.
Thanks, Paul.
The code bits are ok.
Tom