summaryrefslogtreecommitdiff
path: root/target-i386/machine.c
diff options
context:
space:
mode:
authorliguang <lig.fnst@cn.fujitsu.com>2013-01-15 13:39:55 +0800
committerAndreas Färber <afaerber@suse.de>2013-01-15 09:14:35 +0100
commit428065ce50643a56bff043501809b62b035f0b17 (patch)
tree0e854bab9efea8205eae804dd5a3c5860e2c40e7 /target-i386/machine.c
parent5ec01c2e96910e1588d1a0de8609b9dda7618c7f (diff)
downloadqemu-428065ce50643a56bff043501809b62b035f0b17.tar.gz
target-i386: Define DR7 bit field constants
Implicit use of dr7 bit field is a little hard to understand, so define constants for them and use them consistently. Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386/machine.c')
-rw-r--r--target-i386/machine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-i386/machine.c b/target-i386/machine.c
index 8354572c7b..8df6a6b645 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -265,10 +265,11 @@ static int cpu_post_load(void *opaque, int version_id)
cpu_breakpoint_remove_all(env, BP_CPU);
cpu_watchpoint_remove_all(env, BP_CPU);
- for (i = 0; i < 4; i++)
+ for (i = 0; i < DR7_MAX_BP; i++) {
hw_breakpoint_insert(env, i);
-
+ }
tlb_flush(env, 1);
+
return 0;
}