[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH 6/8] pseries: Fix use of global CPU state

From: Alexander Graf
Subject: [Qemu-ppc] [PATCH 6/8] pseries: Fix use of global CPU state
Date: Tue, 1 May 2012 10:58:58 +0200

From: Peter Portante <address@hidden>

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 <address@hidden>
Acked-by: Andreas Färber <address@hidden>
[agraf: fixed typo in commit message]
Signed-off-by: Alexander Graf <address@hidden>
 hw/spapr_hcall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/spapr_hcall.c b/hw/spapr_hcall.c
index 634763e..94bb504 100644
--- a/hw/spapr_hcall.c
+++ b/hw/spapr_hcall.c
@@ -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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]