From patchwork Tue Apr 10 16:01:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 896802 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40LBxX5MVFz9s1P for ; Wed, 11 Apr 2018 02:11:28 +1000 (AEST) Received: from localhost ([::1]:54295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5vri-0007oC-7u for incoming@patchwork.ozlabs.org; Tue, 10 Apr 2018 12:11:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5vip-0007tN-VX for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5vii-0002Hg-Iq for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:16 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:58521) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5vii-0002FV-9J for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:08 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MFE4N-1fHl8v2pIZ-00GI3r; Tue, 10 Apr 2018 18:01:58 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 18:01:40 +0200 Message-Id: <20180410160142.21096-2-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180410160142.21096-1-laurent@vivier.eu> References: <20180410160142.21096-1-laurent@vivier.eu> X-Provags-ID: V03:K1:KlMdrvg3RL6arDtutmvqE6jNYBF4o1CeC/agQDPxdsTAExwED0v YsX8pjiaco9iaQpqFXS6N5TGGy0f2sR+SS1TBs5cMtEFktNEY/7qBaW1D9WVzoj6ICZwFtL irpv0wt+vWQjq7Y18tBqzqRRG6yw60mdiXtikRS+8nBHUOwB2DXaDDq9ziNgzXxQTkFLXSU jll3bHKmCl1H0dq8ILfDQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:QU78onNeR2E=:Y/ac5j+SCBK4FtfiSn7eOL cxm5K8eXng614bEGPm5CUC594YdMoWd3b8+vq68ifmbNk95QRvqjRaxHR94cu5jFoU5ewf8gW PtkwO5boLKdIDnpXsfUVffXuo/6X2D2H1lL92Cg09XnyMGUN7zZQguv7/rkRmro0EzXvDm8Tx D+W2ByABHFXXXkVum44nIW5nQ2Wuj9HFb5V/u9OPO/n2WM2p19kiQKbsn0D0gaf2Xx1bgxFL4 rSL/vncQaJXiO42vnMKT8D2+ova9eJjo65dlQdbTIvkFkdfA9MkLdDkptdC7kZ95+TjfB+d0p Ec/g/QFpkKGwKONungQq2jLeD6ju0vRcdwLHAfhMamp0jVoVLLtnk0iMgjVHzjfyEPIQbyRQ2 kthVVp1DGPRv6kARTXzws2aDCqZSs9/j99a4YRmEgawA7wZke4GlNiPJRyfCY7zABctsDxaS8 YevB9BUuPRO6Ya+XGVLykBHp5WofaYlEkpzOyyXjE+jSXv1NDQL/a5Tm820E0+k81p8XZfumA +IWgy61t9dTFrZtpaQqQXUlgS2IWriA0fspe9cZaQtJm91E5/nx0EIW77+RDfJWxiSeuxe6YG WozQiR6jp37IMc6TF797fdx8PKsLQqi9qq6qLegmEQIgiILm0DQEqNCjlMj1h97B2C5enDyJq SVPfrpYAoENt/LwQCVsXoiYXVKKgo5GW/LTC1EgjjXVGx2B9TxJ9nWBhGCQeLArRzvBArBCai hM5ashf/6lNCcwnFjiGu5h+9S+CnVUCTC1BPtQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.134 Subject: [Qemu-devel] [PULL v2 1/3] linux-user: fix microblaze get_sp_from_cpustate() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" get_sigframe() uses regs[1] and this is actual SP. Signed-off-by: Laurent Vivier Message-Id: <20180409115212.875-1-laurent@vivier.eu> --- linux-user/microblaze/target_signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/microblaze/target_signal.h b/linux-user/microblaze/target_signal.h index de2b0f49d5..642865f12e 100644 --- a/linux-user/microblaze/target_signal.h +++ b/linux-user/microblaze/target_signal.h @@ -23,7 +23,7 @@ typedef struct target_sigaltstack { static inline abi_ulong get_sp_from_cpustate(CPUMBState *state) { - return state->regs[14]; + return state->regs[1]; }