gdb: pass address_space to target dcache functions

A simple refactor to make the reference to current_program_space bubble
up one level.  No behavior changes expected.

Change-Id: I237cf2f45ae73c35bcb433ce40e3c03cef6b87e2
This commit is contained in:
Simon Marchi
2023-11-05 04:52:39 +00:00
parent 9c742269ec
commit 4133662031
8 changed files with 36 additions and 32 deletions

View File

@@ -651,7 +651,7 @@ dcache_info_1 (DCACHE *dcache, const char *exp)
static void
info_dcache_command (const char *exp, int tty)
{
dcache_info_1 (target_dcache_get (), exp);
dcache_info_1 (target_dcache_get (current_program_space->aspace), exp);
}
static void
@@ -663,7 +663,7 @@ set_dcache_size (const char *args, int from_tty,
dcache_size = DCACHE_DEFAULT_SIZE;
error (_("Dcache size must be greater than 0."));
}
target_dcache_invalidate ();
target_dcache_invalidate (current_program_space->aspace);
}
static void
@@ -677,7 +677,7 @@ set_dcache_line_size (const char *args, int from_tty,
dcache_line_size = DCACHE_DEFAULT_LINE_SIZE;
error (_("Invalid dcache line size: %u (must be power of 2)."), d);
}
target_dcache_invalidate ();
target_dcache_invalidate (current_program_space->aspace);
}
void _initialize_dcache ();