]> git.proxmox.com Git - qemu.git/commitdiff
pseries: Fix use of global CPU state
authorPeter Portante <peter.portante@redhat.com>
Mon, 23 Apr 2012 07:27:56 +0000 (07:27 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 1 May 2012 19:47:00 +0000 (21:47 +0200)
Commit ed120055c7f9b26b5707d3ceabbe5a3f06aaf937 (Implement PAPR VPA
functions for pSeries shared processor partitions) introduced the
deregister_dtl() function and typo "emv" as name of its argument.
This went unnoticed because the code in that function can access the
global variable "env" so that no build failure resulted.

Fix the argument to read "env". Resolves LP#986241.

Signed-off-by: Peter Portante <peter.portante@redhat.com>
Acked-by: Andreas Färber <afaerber@suse.de>
[agraf: fixed typo in commit message]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_hcall.c

index 634763eefd86dd0347ce56382c90b71346bf0280..94bb504ca66c920d46c798da715cd72ab4308f6c 100644 (file)
@@ -482,7 +482,7 @@ static target_ulong register_dtl(CPUPPCState *env, target_ulong addr)
     return H_SUCCESS;
 }
 
-static target_ulong deregister_dtl(CPUPPCState *emv, target_ulong addr)
+static target_ulong deregister_dtl(CPUPPCState *env, target_ulong addr)
 {
     env->dispatch_trace_log = 0;
     env->dtl_size = 0;