From patchwork Tue Jul 23 15:48:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 261110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BE01E2C00C9 for ; Wed, 24 Jul 2013 01:52:29 +1000 (EST) Received: from localhost ([::1]:54689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1et1-0000ia-Jy for incoming@patchwork.ozlabs.org; Tue, 23 Jul 2013 11:52:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1eqB-0005OX-W2 for qemu-devel@nongnu.org; Tue, 23 Jul 2013 11:49:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1epx-0001a0-Oy for qemu-devel@nongnu.org; Tue, 23 Jul 2013 11:49:31 -0400 Received: from afflict.kos.to ([92.243.29.197]:45185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1epx-0001ZQ-J3 for qemu-devel@nongnu.org; Tue, 23 Jul 2013 11:49:17 -0400 Received: from kos.to (a91-156-63-85.elisa-laajakaista.fi [91.156.63.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 6408626561 for ; Tue, 23 Jul 2013 17:49:15 +0200 (CEST) Received: from voipio (uid 1000) (envelope-from voipio@kos.to) id 5e07fb by kos.to (DragonFly Mail Agent); Tue, 23 Jul 2013 18:49:13 +0300 From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 23 Jul 2013 18:48:59 +0300 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Peter Maydell Subject: [Qemu-devel] [PULL 09/21] linux-user: Add missing 'break' in i386 get_thread_area syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Maydell The i386 code for the get_thread_area syscall was missing a 'break' which meant it would have fallen through into the implementation of the following syscall; add it. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9619656..642d0a3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8572,6 +8572,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, case TARGET_NR_get_thread_area: #if defined(TARGET_I386) && defined(TARGET_ABI32) ret = do_get_thread_area(cpu_env, arg1); + break; #elif defined(TARGET_M68K) { TaskState *ts = ((CPUArchState *)cpu_env)->opaque;