]> git.proxmox.com Git - qemu.git/commit
target-i386: Introduce hw_{local,global}_breakpoint_enabled()
authorliguang <lig.fnst@cn.fujitsu.com>
Tue, 15 Jan 2013 07:01:07 +0000 (08:01 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 08:14:48 +0000 (09:14 +0100)
commit5902564ac983d67d7d898356971698b50b8f0b91
treec0be48fad1310fd7cf2daf0fafba0b132ba7236f
parent428065ce50643a56bff043501809b62b035f0b17
target-i386: Introduce hw_{local,global}_breakpoint_enabled()

hw_breakpoint_enabled() returned a bit field indicating whether a local
breakpoint and/or global breakpoint was enabled. Avoid this number magic
by using explicit boolean helper functions hw_local_breakpoint_enabled()
and hw_global_breakpoint_enabled(), to aid readability.

Reuse them for the hw_breakpoint_enabled() implementation and change
its return 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/seg_helper.c