45 return (dcache != NULL);
175 Set cache use for stack access."),
_(
"\
176 Show cache use for stack access."),
_(
"\
177 When on, use the target memory cache for all stack access, regardless of any\n\
178 configured memory regions. This improves remote performance significantly.\n\
179 By default, caching for stack access is on."),
186 Set cache use for code segment access."),
_(
"\
187 Show cache use for code segment access."),
_(
"\
188 When on, use the target memory cache for all code segment accesses,\n\
189 regardless of any configured memory regions. This improves remote\n\
190 performance significantly. By default, caching for code segment\n\
197 = register_address_space_data_with_cleanup (NULL,
static int stack_cache_enabled_1
DCACHE * dcache_init(void)
struct address_space * aspace
void dcache_free(DCACHE *dcache)
static void set_stack_cache(char *args, int from_tty, struct cmd_list_element *c)
static int code_cache_enabled_1
DCACHE * target_dcache_get_or_init(void)
static void set_code_cache(char *args, int from_tty, struct cmd_list_element *c)
static int stack_cache_enabled
static int code_cache_enabled
static void show_code_cache(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
struct cmd_list_element * setlist
void target_dcache_invalidate(void)
void initialize_file_ftype(void)
initialize_file_ftype _initialize_target_dcache
void fprintf_filtered(struct ui_file *stream, const char *format,...)
int target_dcache_init_p(void)
struct cmd_list_element * showlist
static void target_dcache_cleanup(struct address_space *aspace, void *arg)
void dcache_invalidate(DCACHE *dcache)
struct program_space * current_program_space
static const struct address_space_data * target_dcache_aspace_key
int code_cache_enabled_p(void)
static void show_stack_cache(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
int stack_cache_enabled_p(void)
DCACHE * target_dcache_get(void)
void add_setshow_boolean_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)