]> git.proxmox.com Git - qemu.git/commit - target-i386/misc_helper.c
target-i386: Use switch in check_hw_breakpoints()
authorliguang <lig.fnst@cn.fujitsu.com>
Tue, 15 Jan 2013 05:39:56 +0000 (13:39 +0800)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 08:23:50 +0000 (09:23 +0100)
commite175bce587936bf479889881488821ea8d61c89c
treea4c046a579839395cc5eb1939bd55721ca47b561
parent1cc21a180b9ea9204e99ad5c58604cb458e572a9
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>
target-i386/cpu.h
target-i386/helper.c
target-i386/misc_helper.c