summaryrefslogtreecommitdiff
path: root/kvm-tpr-opt.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-12-10 17:40:23 +0200
committerAvi Kivity <avi@redhat.com>2009-12-10 17:40:23 +0200
commit427c8e89a51f7df097a6ce34d294449d531d87c0 (patch)
tree9efa7667bc5a39ed0cba0616d5baf703fafe5ff4 /kvm-tpr-opt.c
parent1eab98bb5d1d9ad036f2acbe323642dd6c05492e (diff)
tpr patching: use cpu_synchronize_state() instead of saving registers directly
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm-tpr-opt.c')
-rw-r--r--kvm-tpr-opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c
index 2565d79cd..89256d4c4 100644
--- a/kvm-tpr-opt.c
+++ b/kvm-tpr-opt.c
@@ -225,7 +225,7 @@ static int get_pcr_cpu(CPUState *env)
{
uint8_t b;
- kvm_save_registers(env);
+ cpu_synchronize_state(env);
if (cpu_memory_rw_debug(env, env->segs[R_FS].base + 0x51, &b, 1, 0) < 0)
return -1;