Received: from eggs.gnu.org ([208.118.235.92]:36364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJ6F-00027m-J0 for qemu-devel@nongnu.org; Tue, 01 May 2012 15:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPJ6D-0004VL-Ts for qemu-devel@nongnu.org; Tue, 01 May 2012 15:51:03 -0400 From: Alexander Graf Date: Tue, 1 May 2012 21:50:55 +0200 Message-Id: <1335901857-29799-7-git-send-email-agraf@suse.de> In-Reply-To: <1335901857-29799-1-git-send-email-agraf@suse.de> References: <1335901857-29799-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 6/8] pseries: Fix use of global CPU state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Developers Cc: blauwirbel@gmail.com, Peter Portante , qemu-ppc@nongnu.org From: Peter Portante 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 Acked-by: Andreas F=C3=A4rber [agraf: fixed typo in commit message] Signed-off-by: Alexander Graf --- 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, ta= rget_ulong addr) return H_SUCCESS; } =20 -static target_ulong deregister_dtl(CPUPPCState *emv, target_ulong addr) +static target_ulong deregister_dtl(CPUPPCState *env, target_ulong addr) { env->dispatch_trace_log =3D 0; env->dtl_size =3D 0; --=20 1.6.0.2