From patchwork Mon Apr 1 10:29:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 161527 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp279395jan; Mon, 1 Apr 2019 03:32:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWDBgh3tTFUt6KpCfAqXe6xr5aX/g6daXVeAcJ7JRXZi5UbHHg6bemWxdPFLu8ixkIEL9K X-Received: by 2002:a81:7804:: with SMTP id t4mr52873859ywc.69.1554114759305; Mon, 01 Apr 2019 03:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554114759; cv=none; d=google.com; s=arc-20160816; b=oYUpL+C36vW1nQTAscvBZ8LsXHrXt6EMV+eiw/mOmKYKs7HFNgLHReewsjvhgdgeiq hhjnhag2Pj1hxLbRRqJTAV8F67CBu69+9tz+jX8YuhccRFUnL0MJipRodAJNPrX9FICe eIPgQTujrbjuxdYt+PL3RPc+9vu2XmEkZKWBai/zInfGOvieO+fMCCKz5NwJ9M5wCOq+ EIyFmIngF46w8MCuiOfxCUM48WEhVLFT+ekTcplYbgGP+iiH0yPAeq1gtYofKdQ4W0pb F5v3wYr49cA+p4L8v3zHKIExMq5m2SGfn69aRnEaXFfYKUh2+/VvHnF4BCwFEvoomr5f IqQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :dkim-signature; bh=YjGRsMfZz3A1LcvQC6LVhCxtCdMiuC3i5UMLwtetVJk=; b=XwuOAcJSsFRmTTCjZz/kigrdXwkfGBDAzvmVsCJDlD0j/vR1EK8cwq0LRCEIIDZRkA jJTkeD/vPGWrkJTaQw+Lpls8FaRqxba6L1/Q7TlkpCs4ZaL6L8MDrqaQFJjrqDwpbwjT zeRoKXyhZ7qobtn8nJUoBlv9KJIELWZbIlFEslg+JAfULjaHOrKTzcpQzl2nxjOOq9j8 FgJ2bn7W1FuQSMRkwh5FfofDZHoGdyyV4TuEvLk3+tRt4OqcHNrKD/IHRNU4h9Vigafq /B6Iwiz1EAU6pJSPFSZ5ffAxlzcIzLYNI4BeprQQMaAlUD07vOM9MebrVlpzTXU4KHyh nnwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kqVKw8tT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a187si6045349ywg.202.2019.04.01.03.32.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 01 Apr 2019 03:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kqVKw8tT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:55848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAuF4-0005qn-NY for patch@linaro.org; Mon, 01 Apr 2019 06:32:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAuBt-0003Gt-1N for qemu-devel@nongnu.org; Mon, 01 Apr 2019 06:29:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAuBs-0005pZ-22 for qemu-devel@nongnu.org; Mon, 01 Apr 2019 06:29:21 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:38922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAuBr-0005op-9n for qemu-devel@nongnu.org; Mon, 01 Apr 2019 06:29:19 -0400 Received: by mail-pl1-x642.google.com with SMTP id b65so4277461plb.6 for ; Mon, 01 Apr 2019 03:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=YjGRsMfZz3A1LcvQC6LVhCxtCdMiuC3i5UMLwtetVJk=; b=kqVKw8tTcCdu4tlbKjrTCjflyP46TK4xTpzp6EObXwg8LpjMLTXYZZWVko1U4JJWhX UWrdzuHaVLfTvt+GP7mxou3lC+Dpt2Wd6bXnkZjHKRM33zCFKOlac8M/xkE4rv9MuFQp 6wLMbMIl0izlZuisjlaVaETw3/SJA+9cgzNO1cLoZ/tq3B1tgWK+os7tmxPzYwTomwMA alkphyt4L15ShkCOcSRvxReUzVhJvknse7fGJ0arNuUUwW25emQ/3Uyaop+jOIqlR6WC zBG7oNLzYxJX22lV2HQU9TyoO3N3QZdS4lpa+jLrAsNH7Sa1qNICRDMEi7pKNMBysdxr kLYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YjGRsMfZz3A1LcvQC6LVhCxtCdMiuC3i5UMLwtetVJk=; b=o6CeZmKA64nm8gz/oUns85M8Wh8c8Ad+poHxS21GO48/Jql5Pw2mhW0UWpMoMGcAjh 4F7hXqGRMRQChr1PW00x/4uIxHgJoN/LvcLV3qIPjCoyTcmSdm+42PexMREgUPpqCTGf E9udTQ2DE+6IMQTe1pyelFGWgvaacLJ2mySbLMAfx7u7I9XYZ37hwLEjuu8doSAUk0PQ Z+zw5C0aNNLt/jqHfFvdd5ipz+K10zQDm/saQggePWzRvcghVN1AYbhN6J/XkAnWtcPP f0mPDuLqlz3+QEeQ9CwjMt//8XNm95sknzythgP+Vo0NRj3uWNVPk9hwLg1rvt25BH0N QnRQ== X-Gm-Message-State: APjAAAVPoZjLLSnTApMySpeqtxIGikmH6H0OJLFZPTI9n6EAG7R6P1nF jtPxhMhynA1s2RaBDZkJhRrcJegb08nBFg== X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr63448389plp.137.1554114558028; Mon, 01 Apr 2019 03:29:18 -0700 (PDT) Received: from cloudburst.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id c134sm20048203pfc.87.2019.04.01.03.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 03:29:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2019 17:29:05 +0700 Message-Id: <20190401102911.8685-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 Subject: [Qemu-devel] [PATCH for-4.1 0/6] target/s390x: Clean up tcg exceptions 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: qemu-s390x@nongnu.org, cohuck@redhat.com, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" I've been cleaning up some random branches and found this, dating from mid-2017(!) My memory is that I wrote this going into some softfreeze and then failed to do anything with it once development opened again. Oops. The major change is to handle ILEN via TCG unwinding, so that we don't have to Just Know about the ILEN (the majority of the calls to s390_program_interrupt use constants), or re-read from memory (which gets EX wrong). r~ Richard Henderson (6): target/s390x: Truncate 32-bit psw_addr before creating TB target/s390x: Add ilen to unwind data target/s390x: Use ilen from unwind in tlb_fill target/s390x: Remove ilen parameter from tcg_s390_program_interrupt target/s390x: Remove ilen parameter from s390_program_interrupt target/s390x: Use tcg_s390_program_interrupt in TCG helpers target/s390x/cpu.h | 33 +++++++++++++------- target/s390x/internal.h | 2 +- target/s390x/tcg_s390x.h | 4 +-- hw/s390x/s390-pci-inst.c | 58 ++++++++++++++++++------------------ target/s390x/cc_helper.c | 4 +-- target/s390x/crypto_helper.c | 7 ++--- target/s390x/diag.c | 14 ++++----- target/s390x/excp_helper.c | 10 +++---- target/s390x/fpu_helper.c | 6 ++-- target/s390x/int_helper.c | 15 +++++----- target/s390x/interrupt.c | 12 ++++---- target/s390x/ioinst.c | 40 ++++++++++++------------- target/s390x/mem_helper.c | 53 +++++++++++++++++++------------- target/s390x/misc_helper.c | 27 ++++++----------- target/s390x/tcg-stub.c | 4 +-- target/s390x/translate.c | 16 +++++----- 16 files changed, 163 insertions(+), 142 deletions(-) -- 2.17.1