From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O928c-0003X9-Nq for qemu-devel@nongnu.org; Mon, 03 May 2010 16:21:10 -0400 Received: from [140.186.70.92] (port=42453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O928b-0003UJ-01 for qemu-devel@nongnu.org; Mon, 03 May 2010 16:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O928W-0006Uz-MA for qemu-devel@nongnu.org; Mon, 03 May 2010 16:21:08 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:50760) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O928W-0006Uv-Ed for qemu-devel@nongnu.org; Mon, 03 May 2010 16:21:04 -0400 Received: by bwz1 with SMTP id 1so1555890bwz.2 for ; Mon, 03 May 2010 13:21:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20100503072448.367.7010.stgit@skyserv> <20100503072939.367.3130.stgit@skyserv> Date: Tue, 4 May 2010 00:21:03 +0400 Message-ID: Subject: Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries From: Igor Kovalenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On Tue, May 4, 2010 at 12:06 AM, Blue Swirl wrote: > On 5/3/10, Igor V. Kovalenko wrote: >> From: Igor V. Kovalenko >> >> =A0- match global tte against any context >> =A0- show global tte in MMU dump >> >> =A0Signed-off-by: Igor V. Kovalenko > > I get this error: > =A0CC =A0 =A0sparc64-softmmu/op_helper.o > cc1: warnings being treated as errors > /src/qemu/target-sparc/op_helper.c: In function 'demap_tlb': > /src/qemu/target-sparc/op_helper.c:129: error: 'context' may be used > uninitialized in this function > My gcc (Gentoo 4.4.3-r2 p1.2) is silent, and looking at the change all 4 possible cases are handled in switch statement. It should initializes context in 3 usable cases and returns from the 4th which is reserved. How do we fix this issue? --=20 Kind regards, Igor V. Kovalenko