summaryrefslogtreecommitdiffstats
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorliguang <lig.fnst@cn.fujitsu.com>2013-01-15 13:39:56 +0800
committerAndreas Färber <afaerber@suse.de>2013-01-15 09:23:50 +0100
commite175bce587936bf479889881488821ea8d61c89c (patch)
treea4c046a579839395cc5eb1939bd55721ca47b561 /target-i386/cpu.h
parent1cc21a180b9ea9204e99ad5c58604cb458e572a9 (diff)
downloadhqemu-e175bce587936bf479889881488821ea8d61c89c.zip
hqemu-e175bce587936bf479889881488821ea8d61c89c.tar.gz
target-i386: Use switch in check_hw_breakpoints()
Replace an if statement using magic numbers for breakpoint type with a more explicit switch statement. This is to aid readability. Change the return type and force_dr6_update argument type to bool. While at it, fix Coding Style issues (missing braces). Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 1e850a7..4e091cd 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -1043,7 +1043,7 @@ 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);
-int check_hw_breakpoints(CPUX86State *env, int force_dr6_update);
+bool check_hw_breakpoints(CPUX86State *env, bool force_dr6_update);
void breakpoint_handler(CPUX86State *env);
/* will be suppressed */
OpenPOWER on IntegriCloud