target/arm: Replace target_ulong -> vaddr for HWBreakpoint
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-id: 20250512180502.2395029-2-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2a952e052a
commit
133edc4f22
2 changed files with 6 additions and 6 deletions
|
|
@ -54,7 +54,7 @@ GArray *hw_breakpoints, *hw_watchpoints;
|
|||
* here so future PC comparisons will work properly.
|
||||
*/
|
||||
|
||||
int insert_hw_breakpoint(target_ulong addr)
|
||||
int insert_hw_breakpoint(vaddr addr)
|
||||
{
|
||||
HWBreakpoint brk = {
|
||||
.bcr = 0x1, /* BCR E=1, enable */
|
||||
|
|
@ -80,7 +80,7 @@ int insert_hw_breakpoint(target_ulong addr)
|
|||
* Delete a breakpoint and shuffle any above down
|
||||
*/
|
||||
|
||||
int delete_hw_breakpoint(target_ulong pc)
|
||||
int delete_hw_breakpoint(vaddr pc)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < hw_breakpoints->len; i++) {
|
||||
|
|
@ -226,7 +226,7 @@ int delete_hw_watchpoint(vaddr addr, vaddr len, int type)
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
bool find_hw_breakpoint(CPUState *cpu, target_ulong pc)
|
||||
bool find_hw_breakpoint(CPUState *cpu, vaddr pc)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
|
|
@ -1948,9 +1948,9 @@ extern GArray *hw_breakpoints, *hw_watchpoints;
|
|||
#define get_hw_bp(i) (&g_array_index(hw_breakpoints, HWBreakpoint, i))
|
||||
#define get_hw_wp(i) (&g_array_index(hw_watchpoints, HWWatchpoint, i))
|
||||
|
||||
bool find_hw_breakpoint(CPUState *cpu, target_ulong pc);
|
||||
int insert_hw_breakpoint(target_ulong pc);
|
||||
int delete_hw_breakpoint(target_ulong pc);
|
||||
bool find_hw_breakpoint(CPUState *cpu, vaddr pc);
|
||||
int insert_hw_breakpoint(vaddr pc);
|
||||
int delete_hw_breakpoint(vaddr pc);
|
||||
|
||||
bool check_watchpoint_in_range(int i, vaddr addr);
|
||||
CPUWatchpoint *find_hw_watchpoint(CPUState *cpu, vaddr addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue