From 77b03e0973cbe316f2d308e74953a0ec49dd6055 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 11 Feb 2018 12:27:06 -0500 Subject: [PATCH] target-i386: Make check_hw_breakpoints static The function is now only used from within a single file. Backports commit dd941cdcfec536aad6a310a153778142ed9f3e92 from qemu --- qemu/target-i386/bpt_helper.c | 2 +- qemu/target-i386/cpu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/qemu/target-i386/bpt_helper.c b/qemu/target-i386/bpt_helper.c index e101529e..35f0405f 100644 --- a/qemu/target-i386/bpt_helper.c +++ b/qemu/target-i386/bpt_helper.c @@ -79,7 +79,7 @@ void hw_breakpoint_remove(CPUX86State *env, int index) } } -bool check_hw_breakpoints(CPUX86State *env, bool force_dr6_update) +static bool check_hw_breakpoints(CPUX86State *env, bool force_dr6_update) { target_ulong dr6; int reg; diff --git a/qemu/target-i386/cpu.h b/qemu/target-i386/cpu.h index 920552e7..1747f9a6 100644 --- a/qemu/target-i386/cpu.h +++ b/qemu/target-i386/cpu.h @@ -1185,7 +1185,6 @@ static inline int hw_breakpoint_len(unsigned long dr7, int index) void hw_breakpoint_insert(CPUX86State *env, int index); void hw_breakpoint_remove(CPUX86State *env, int index); -bool check_hw_breakpoints(CPUX86State *env, bool force_dr6_update); void breakpoint_handler(CPUState *cs); /* will be suppressed */