From patchwork Fri Aug 24 11:50:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10575247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A1CF1390 for ; Fri, 24 Aug 2018 11:51:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F070F2C150 for ; Fri, 24 Aug 2018 11:51:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4D0B2C176; Fri, 24 Aug 2018 11:51:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96A5B2C150 for ; Fri, 24 Aug 2018 11:51:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727753AbeHXPZZ (ORCPT ); Fri, 24 Aug 2018 11:25:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47836 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727742AbeHXPZZ (ORCPT ); Fri, 24 Aug 2018 11:25:25 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 18BBB4023827; Fri, 24 Aug 2018 11:51:07 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-203.ams2.redhat.com [10.36.116.203]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3BDDC10CD824; Fri, 24 Aug 2018 11:51:05 +0000 (UTC) From: David Hildenbrand To: kvm@vger.kernel.org Cc: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= , Thomas Huth , Christian Borntraeger , Cornelia Huck , Janosch Frank , David Hildenbrand Subject: [PATCH kvm-unit-tests v1 2/4] s390x: fix storing/loading fregs to right address Date: Fri, 24 Aug 2018 13:50:57 +0200 Message-Id: <20180824115059.1517-3-david@redhat.com> In-Reply-To: <20180824115059.1517-1-david@redhat.com> References: <20180824115059.1517-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 24 Aug 2018 11:51:07 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 24 Aug 2018 11:51:07 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP LARL is wrong here, as we specify an explicit address. Let's use LA (we could also drop it and fixup all loads/stores, but this is easier). Signed-off-by: David Hildenbrand Reviewed-by: Thomas Huth Reviewed-by: Janosch Frank --- s390x/cstart64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s390x/cstart64.S b/s390x/cstart64.S index 2f02d4d..02a4f77 100644 --- a/s390x/cstart64.S +++ b/s390x/cstart64.S @@ -58,7 +58,7 @@ init_psw_cont: /* save grs 0-15 */ stmg %r0, %r15, GEN_LC_SW_INT_GRS /* save fprs 0-15 + fpc */ - larl %r1, GEN_LC_SW_INT_FPRS + la %r1, GEN_LC_SW_INT_FPRS std %f0, 0(%r1) std %f1, 8(%r1) std %f2, 16(%r1) @@ -80,7 +80,7 @@ init_psw_cont: .macro RESTORE_REGS /* restore fprs 0-15 + fpc */ - larl %r1, GEN_LC_SW_INT_FPRS + la %r1, GEN_LC_SW_INT_FPRS ld %f0, 0(%r1) ld %f1, 8(%r1) ld %f2, 16(%r1)