mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
1cc21a180b
commit
e175bce587
3 changed files with 34 additions and 14 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue