From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L60qS-0004UV-8I for qemu-devel@nongnu.org; Fri, 28 Nov 2008 05:45:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L60qR-0004TT-CK for qemu-devel@nongnu.org; Fri, 28 Nov 2008 05:45:07 -0500 Received: from [199.232.76.173] (port=56655 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L60qQ-0004T7-Jb for qemu-devel@nongnu.org; Fri, 28 Nov 2008 05:45:06 -0500 Received: from outbound-va3.frontbridge.com ([216.32.180.16]:47509 helo=VA3EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1L60qQ-0006iP-6U for qemu-devel@nongnu.org; Fri, 28 Nov 2008 05:45:06 -0500 From: Christoph Egger Date: Fri, 28 Nov 2008 12:31:27 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_/h8LJ6UikBrXbb3" Message-ID: <200811281131.27737.Christoph.Egger@amd.com> Subject: [Qemu-devel] [PATCH 2/6] qemu fixes Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl --Boundary-00=_/h8LJ6UikBrXbb3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, This is a series of four patches which improve support for qemu on NetBSD. Attached patch fixes warnings in the i386 specific part. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_/h8LJ6UikBrXbb3 Content-Type: text/x-diff; charset="us-ascii"; name="i386_qemu.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="i386_qemu.diff" Index: target-i386/op_helper.c =================================================================== --- target-i386/op_helper.c (revision 5805) +++ target-i386/op_helper.c (working copy) @@ -210,7 +210,7 @@ /* XXX: merge with load_seg() */ static void tss_load_seg(int seg_reg, int selector) { - uint32_t e1, e2; + uint32_t e1 = 0, e2 = 0; int rpl, dpl, cpl; if ((selector & 0xfffc) != 0) { @@ -638,7 +638,7 @@ target_ulong ptr, ssp; int type, dpl, selector, ss_dpl, cpl; int has_error_code, new_stack, shift; - uint32_t e1, e2, offset, ss, esp, ss_e1, ss_e2; + uint32_t e1, e2, offset, ss = 0, esp, ss_e1 = 0, ss_e2 = 0; uint32_t old_eip, sp_mask; has_error_code = 0; @@ -2159,7 +2159,7 @@ int next_eip_addend) { int gate_cs, type; - uint32_t e1, e2, cpl, dpl, rpl, limit; + uint32_t e1 = 0, e2 = 0, cpl, dpl, rpl, limit; target_ulong next_eip; if ((new_cs & 0xfffc) == 0) @@ -2275,8 +2275,8 @@ int shift, int next_eip_addend) { int new_stack, i; - uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count; - uint32_t ss, ss_e1, ss_e2, sp, type, ss_dpl, sp_mask; + uint32_t e1 = 0, e2 = 0, cpl, dpl, rpl, selector, offset, param_count; + uint32_t ss = 0, ss_e1 = 0, ss_e2 = 0, sp, type, ss_dpl, sp_mask; uint32_t val, limit, old_sp_mask; target_ulong ssp, old_ssp, next_eip; @@ -2552,7 +2552,7 @@ { uint32_t new_cs, new_eflags, new_ss; uint32_t new_es, new_ds, new_fs, new_gs; - uint32_t e1, e2, ss_e1, ss_e2; + uint32_t e1 = 0, e2 = 0, ss_e1 = 0, ss_e2 = 0; int cpl, dpl, rpl, eflags_mask, iopl; target_ulong ssp, sp, new_eip, new_esp, sp_mask; @@ -2753,7 +2753,7 @@ void helper_iret_protected(int shift, int next_eip) { int tss_selector, type; - uint32_t e1, e2; + uint32_t e1 = 0, e2 = 0; /* specific case for TSS */ if (env->eflags & NT_MASK) { --Boundary-00=_/h8LJ6UikBrXbb3--