Received: from eggs.gnu.org ([2001:4830:134:3::10]:39443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNKMS-00072W-Tt for qemu-devel@nongnu.org; Fri, 29 Aug 2014 07:29:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNKMN-0000L5-LG for qemu-devel@nongnu.org; Fri, 29 Aug 2014 07:28:56 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:46750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNKMN-0000Km-FX for qemu-devel@nongnu.org; Fri, 29 Aug 2014 07:28:51 -0400 From: Peter Maydell Date: Fri, 29 Aug 2014 12:21:24 +0100 Message-Id: <1409311292-18860-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1409311292-18860-1-git-send-email-peter.maydell@linaro.org> References: <1409311292-18860-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 02/10] exec.c: Provide full set of dummy wp remove functions in user-mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , =?UTF-8?q?Andreas=20F=C3=A4rber?= , patches@linaro.org We already provide dummy versions of the cpu_watchpoint_insert and cpu_watchpoint_remove_all functions when CONFIG_USER_ONLY is defined. Complete the set by providing cpu_watchpoint_remove and cpu_watchpoint_remove_by_ref as well. This allows target-* code using these functions to avoid some ifdeffery. Signed-off-by: Peter Maydell --- exec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exec.c b/exec.c index 1f3f4a5..82a90e7 100644 --- a/exec.c +++ b/exec.c @@ -537,6 +537,16 @@ void cpu_watchpoint_remove_all(CPUState *cpu, int mask) { } +int cpu_watchpoint_remove(CPUState *cpu, vaddr addr, vaddr len, + int flags) +{ + return -ENOSYS; +} + +void cpu_watchpoint_remove_by_ref(CPUState *cpu, CPUWatchpoint *watchpoint) +{ +} + int cpu_watchpoint_insert(CPUState *cpu, vaddr addr, vaddr len, int flags, CPUWatchpoint **watchpoint) { -- 1.9.1