Received: from eggs.gnu.org ([208.118.235.92]:38776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMRgU-0002aW-6g for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMRgT-0003sP-29 for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49215 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMRgS-0003s4-PD for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:52 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 12 Oct 2012 00:56:33 +0200 Message-Id: <1349996197-11054-2-git-send-email-afaerber@suse.de> In-Reply-To: <1349996197-11054-1-git-send-email-afaerber@suse.de> References: <1349996197-11054-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 1/5] target-mips: Clean up other_cpu in helper_{d, e}vpe() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , aurelien@aurel32.net Free the variable name "other_cpu" for later use for MIPSCPU. Fix off-by-one indentation while at it. Signed-off-by: Andreas F=C3=A4rber --- target-mips/op_helper.c | 28 ++++++++++++++-------------- 1 Datei ge=C3=A4ndert, 14 Zeilen hinzugef=C3=BCgt(+), 14 Zeilen entfernt= (-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index ce5ddaf..1051c44 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -1874,35 +1874,35 @@ target_ulong helper_emt(void) =20 target_ulong helper_dvpe(CPUMIPSState *env) { - CPUMIPSState *other_cpu =3D first_cpu; + CPUMIPSState *other_cpu_env =3D first_cpu; target_ulong prev =3D env->mvp->CP0_MVPControl; =20 do { /* Turn off all VPEs except the one executing the dvpe. */ - if (other_cpu !=3D env) { - other_cpu->mvp->CP0_MVPControl &=3D ~(1 << CP0MVPCo_EVP); - mips_vpe_sleep(other_cpu); + if (other_cpu_env !=3D env) { + other_cpu_env->mvp->CP0_MVPControl &=3D ~(1 << CP0MVPCo_EVP)= ; + mips_vpe_sleep(other_cpu_env); } - other_cpu =3D other_cpu->next_cpu; - } while (other_cpu); + other_cpu_env =3D other_cpu_env->next_cpu; + } while (other_cpu_env); return prev; } =20 target_ulong helper_evpe(CPUMIPSState *env) { - CPUMIPSState *other_cpu =3D first_cpu; + CPUMIPSState *other_cpu_env =3D first_cpu; target_ulong prev =3D env->mvp->CP0_MVPControl; =20 do { - if (other_cpu !=3D env - /* If the VPE is WFI, don't disturb its sleep. */ - && !mips_vpe_is_wfi(other_cpu)) { + if (other_cpu_env !=3D env + /* If the VPE is WFI, don't disturb its sleep. */ + && !mips_vpe_is_wfi(other_cpu_env)) { /* Enable the VPE. */ - other_cpu->mvp->CP0_MVPControl |=3D (1 << CP0MVPCo_EVP); - mips_vpe_wake(other_cpu); /* And wake it up. */ + other_cpu_env->mvp->CP0_MVPControl |=3D (1 << CP0MVPCo_EVP); + mips_vpe_wake(other_cpu_env); /* And wake it up. */ } - other_cpu =3D other_cpu->next_cpu; - } while (other_cpu); + other_cpu_env =3D other_cpu_env->next_cpu; + } while (other_cpu_env); return prev; } #endif /* !CONFIG_USER_ONLY */ --=20 1.7.10.4