From patchwork Tue May 5 17:47:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Koppelmann X-Patchwork-Id: 468288 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3A11814075A for ; Wed, 6 May 2015 03:47:48 +1000 (AEST) Received: from localhost ([::1]:41021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypgwc-0008TF-6V for incoming@patchwork.ozlabs.org; Tue, 05 May 2015 13:47:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypgw9-0007dj-UX for qemu-devel@nongnu.org; Tue, 05 May 2015 13:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypgw7-0003Ug-Et for qemu-devel@nongnu.org; Tue, 05 May 2015 13:47:17 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:45924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypgw7-0003TX-96 for qemu-devel@nongnu.org; Tue, 05 May 2015 13:47:15 -0400 From: Bastian Koppelmann To: qemu-devel@nongnu.org Date: Tue, 5 May 2015 19:47:02 +0200 Message-Id: <1430848023-21048-5-git-send-email-kbastian@mail.uni-paderborn.de> X-Mailer: git-send-email 2.3.7 In-Reply-To: <1430848023-21048-1-git-send-email-kbastian@mail.uni-paderborn.de> References: <1430848023-21048-1-git-send-email-kbastian@mail.uni-paderborn.de> X-IMT-Spam-Score: 0.0 () X-PMX-Version: 6.2.0.2453472, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.5.5.173618 X-IMT-Authenticated-Sender: uid=kbastian,ou=People,o=upb,c=de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 131.234.142.9 Subject: [Qemu-devel] [PATCH 4/5] target-tricore: fix rslcx restoring the upper context instead of the lower 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 Signed-off-by: Bastian Koppelmann --- target-tricore/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c index 9907e07..011f09f 100644 --- a/target-tricore/op_helper.c +++ b/target-tricore/op_helper.c @@ -2581,7 +2581,7 @@ void helper_rslcx(CPUTriCoreState *env) ((env->PCXI & MASK_PCXI_PCXO) << 6); /* {new_PCXI, A[11], A[10], A[11], D[8], D[9], D[10], D[11], A[12], A[13], A[14], A[15], D[12], D[13], D[14], D[15]} = M(EA, 16 * word); */ - restore_context_upper(env, ea, &new_PCXI, &env->gpr_a[11]); + restore_context_lower(env, ea, &new_PCXI, &env->gpr_a[11]); /* M(EA, word) = FCX; */ cpu_stl_data(env, ea, env->FCX); /* M(EA, word) = FCX; */