mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
target/arm: Replace target_ulong -> vaddr for CPUWatchpoint
CPUWatchpoint::vaddr/len are of type vaddr. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250415172246.79470-4-philmd@linaro.org>
This commit is contained in:
parent
35ca9d14c1
commit
6fa103069d
2 changed files with 9 additions and 8 deletions
|
@ -125,7 +125,7 @@ int delete_hw_breakpoint(target_ulong pc)
|
|||
* need to ensure you mask the address as required and set BAS=0xff
|
||||
*/
|
||||
|
||||
int insert_hw_watchpoint(target_ulong addr, target_ulong len, int type)
|
||||
int insert_hw_watchpoint(vaddr addr, vaddr len, int type)
|
||||
{
|
||||
HWWatchpoint wp = {
|
||||
.wcr = R_DBGWCR_E_MASK, /* E=1, enable */
|
||||
|
@ -182,7 +182,7 @@ int insert_hw_watchpoint(target_ulong addr, target_ulong len, int type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool check_watchpoint_in_range(int i, target_ulong addr)
|
||||
bool check_watchpoint_in_range(int i, vaddr addr)
|
||||
{
|
||||
HWWatchpoint *wp = get_hw_wp(i);
|
||||
uint64_t addr_top, addr_bottom = wp->wvr;
|
||||
|
@ -214,7 +214,7 @@ bool check_watchpoint_in_range(int i, target_ulong addr)
|
|||
* Delete a breakpoint and shuffle any above down
|
||||
*/
|
||||
|
||||
int delete_hw_watchpoint(target_ulong addr, target_ulong len, int type)
|
||||
int delete_hw_watchpoint(vaddr addr, vaddr len, int type)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < cur_hw_wps; i++) {
|
||||
|
@ -239,7 +239,7 @@ bool find_hw_breakpoint(CPUState *cpu, target_ulong pc)
|
|||
return false;
|
||||
}
|
||||
|
||||
CPUWatchpoint *find_hw_watchpoint(CPUState *cpu, target_ulong addr)
|
||||
CPUWatchpoint *find_hw_watchpoint(CPUState *cpu, vaddr addr)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue