[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/9] target: Use vaddr for hvf_arch_[insert|remove]_hw_breakpo
From: |
Anton Johansson |
Subject: |
[PATCH v2 4/9] target: Use vaddr for hvf_arch_[insert|remove]_hw_breakpoint |
Date: |
Mon, 7 Aug 2023 17:57:01 +0200 |
Changes the signature of the target-defined functions for
inserting/removing hvf hw breakpoints. The address and length arguments
are now of vaddr type, which both matches the type used internally in
accel/hvf/hvf-all.c and makes the api target-agnostic.
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
include/sysemu/hvf.h | 6 ++----
target/arm/hvf/hvf.c | 4 ++--
target/i386/hvf/hvf.c | 4 ++--
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/include/sysemu/hvf.h b/include/sysemu/hvf.h
index 4cbae87ced..4037cd6a73 100644
--- a/include/sysemu/hvf.h
+++ b/include/sysemu/hvf.h
@@ -51,10 +51,8 @@ int hvf_sw_breakpoints_active(CPUState *cpu);
int hvf_arch_insert_sw_breakpoint(CPUState *cpu, struct hvf_sw_breakpoint *bp);
int hvf_arch_remove_sw_breakpoint(CPUState *cpu, struct hvf_sw_breakpoint *bp);
-int hvf_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len,
- int type);
-int hvf_arch_remove_hw_breakpoint(target_ulong addr, target_ulong len,
- int type);
+int hvf_arch_insert_hw_breakpoint(vaddr addr, vaddr len, int type);
+int hvf_arch_remove_hw_breakpoint(vaddr addr, vaddr len, int type);
void hvf_arch_remove_all_hw_breakpoints(void);
/*
diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 8fce64bbf6..486f90be1d 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -2063,7 +2063,7 @@ int hvf_arch_remove_sw_breakpoint(CPUState *cpu, struct
hvf_sw_breakpoint *bp)
return 0;
}
-int hvf_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len, int
type)
+int hvf_arch_insert_hw_breakpoint(vaddr addr, vaddr len, int type)
{
switch (type) {
case GDB_BREAKPOINT_HW:
@@ -2077,7 +2077,7 @@ int hvf_arch_insert_hw_breakpoint(target_ulong addr,
target_ulong len, int type)
}
}
-int hvf_arch_remove_hw_breakpoint(target_ulong addr, target_ulong len, int
type)
+int hvf_arch_remove_hw_breakpoint(vaddr addr, vaddr len, int type)
{
switch (type) {
case GDB_BREAKPOINT_HW:
diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c
index b9cbcc02a8..cb2cd0b02f 100644
--- a/target/i386/hvf/hvf.c
+++ b/target/i386/hvf/hvf.c
@@ -690,12 +690,12 @@ int hvf_arch_remove_sw_breakpoint(CPUState *cpu, struct
hvf_sw_breakpoint *bp)
return -ENOSYS;
}
-int hvf_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len, int
type)
+int hvf_arch_insert_hw_breakpoint(vaddr addr, vaddr len, int type)
{
return -ENOSYS;
}
-int hvf_arch_remove_hw_breakpoint(target_ulong addr, target_ulong len, int
type)
+int hvf_arch_remove_hw_breakpoint(vaddr addr, vaddr len, int type)
{
return -ENOSYS;
}
--
2.41.0
- [PATCH 0/9] Replace remaining target_ulong in system-mode accel, Anton Johansson, 2023/08/07
- [PATCH v2 1/9] accel/kvm: Widen pc/saved_insn for kvm_sw_breakpoint, Anton Johansson, 2023/08/07
- [PATCH v2 4/9] target: Use vaddr for hvf_arch_[insert|remove]_hw_breakpoint,
Anton Johansson <=
- [PATCH v2 5/9] Replace target_ulong with abi_ptr in cpu_[st|ld]*(), Anton Johansson, 2023/08/07
- [PATCH v2 7/9] include/exec: Widen tlb_hit/tlb_hit_page(), Anton Johansson, 2023/08/07
- [PATCH v2 8/9] accel/tcg: Widen address arg. in tlb_compare_set(), Anton Johansson, 2023/08/07
- [PATCH v2 2/9] accel/hvf: Widen pc/saved_insn for hvf_sw_breakpoint, Anton Johansson, 2023/08/07
- [PATCH v2 3/9] target: Use vaddr for kvm_arch_[insert|remove]_hw_breakpoint, Anton Johansson, 2023/08/07
- [PATCH v2 6/9] include/exec: typedef abi_ptr to vaddr in softmmu, Anton Johansson, 2023/08/07
- [PATCH v2 9/9] accel/tcg: Update run_on_cpu_data static assert, Anton Johansson, 2023/08/07
- Re: [PATCH 0/9] Replace remaining target_ulong in system-mode accel, Richard Henderson, 2023/08/08