From patchwork Tue Sep 6 10:17:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 603017 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp4432188mae; Tue, 6 Sep 2022 04:20:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR5occLP/3WHxZ3e9NuYHwfcYvNV2iuykjJ/Tb9DzAiPUHDsTgEZM95zAOlUNIB+vaG1YrwP X-Received: by 2002:a05:6214:2342:b0:473:e142:f758 with SMTP id hu2-20020a056214234200b00473e142f758mr44318160qvb.83.1662463210588; Tue, 06 Sep 2022 04:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662463210; cv=none; d=google.com; s=arc-20160816; b=U9F9Ix2uW5+88GPpIuWv7HrEUn50JfzJLKAps33UQO8zR5RApEFKUYAMcJp/qkJwJx 9EkGioC/e8o9i59A68WaFgjCIv/GjACNF3dvUyLIZXnFmVcEUkK4PbMCQrj+M8+E8NmO 8LZ6mad+2bWXVnUw1+0TcfZsugqJMNOvyajFUBxr1Y6dcf25yVx8Z3JDkQNY6wrjcGVl mm37Y7rPnTRHA0LzUMLUtuXXjC6BejCQRfmEZAm+BrhKAna3gaSeLk5axIBnn7zywFju lpirsuX5lNLGdA2zJAskCGVrsjGTXdcQ/N0DPCxv5oLEEv1A6NjakjzMNu/XwGLi7Tz0 5I+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=gYhyum6pOzckrUFu4BVVweK7XpMxrZqp4t8rlGrepl4=; b=AvY2aGI4c7/kSEJ67Yjw18WSen2SeWI8fNopg1wI++OmFXQGQHDfCPlgnOOqJeCOIu TuenzPQ60NsD9cDdzVRsVDBiIp9wRqCxl8ljlzV5owmOuyA/KU8+j/Fksz5sgFu77+VN RRdlHh7z9cMANML41mSZH5fQXfD+A37/48ARmut1x6iU8BqIFHby45WWhkWAgOaWnm7E rBsttNU+uIzWXcX3nUE5KxDlR92QJnyzgLPrzhn9RpoYqssaFfcnzwYdNvVM9rdxcEVP p9envEncz+B0qYCjeVA1DcPAIXnnJjQ1CYKmlDcF743+5uhFcCib52410cErceaezUzg /AWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nTol2E4H; 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=pass (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 jx13-20020a0562142b0d00b004a5aa2e1c99si3779611qvb.500.2022.09.06.04.20.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Sep 2022 04:20:10 -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=pass header.i=@linaro.org header.s=google header.b=nTol2E4H; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVWck-0008TL-1b for patch@linaro.org; Tue, 06 Sep 2022 07:20:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVVeS-00034j-P3 for qemu-devel@nongnu.org; Tue, 06 Sep 2022 06:17:52 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:46835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVVeQ-00059t-GS for qemu-devel@nongnu.org; Tue, 06 Sep 2022 06:17:52 -0400 Received: by mail-wr1-x42c.google.com with SMTP id e20so14658090wri.13 for ; Tue, 06 Sep 2022 03:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=gYhyum6pOzckrUFu4BVVweK7XpMxrZqp4t8rlGrepl4=; b=nTol2E4HSfvOTHvgBNGQio8E+rDqwjCd//jNFTgTbw3WhthMoTFvyEXefl9uUWKna1 R3SpK7R+04EVR17Fr1ycM9E9QWEwg0ZIM7z/aKbJGumtsxgqVKytkbfUKonP+IPC5jGj s5tn9ZhFPf+t69fRhwphAnswcXwvQ8OnBhhqpeoDhTEKBLlC3UjtLr5q9l2XsBo6RRui WkY47fQHDYmX0vod1gmAHcnWVzoFCf8JiX5/yhTgvCoXRTSGz2eQuar6Inf+cTC10alg b7vAhMwPR4HXwZTPSFMc4SbPVkCzHd76YwBuUEUvkTBsrOIRggIx3rm+z4QxeAQsTsq4 stEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=gYhyum6pOzckrUFu4BVVweK7XpMxrZqp4t8rlGrepl4=; b=PkQamLrnW8z6kUsKqbkI/JpBe6eNVtL6cfQKxvVWw7eMUW067oBPPFoiIQwEm7gc9G AOqrcRV+sT8KGpOD6RlpEN12SIs2XPWiYEQku4HxrhfkVSMILoBV/3A8/I6EvYwVUFjU 5utVB1KelI4bu9f6lrUpHG5ILtV/hvSpJB2y0QgQZs2cQ+s7LOIC4msSYF1y3N4TpizV twltw66/vPCv7Vda1I1NUEo5rkqiAmEf14B8Klc3BDGZNU9xkLHn8wtHXWOk8fPQkXn0 wN/w8uORfVBQ1m29h4jxfE+GfLtCGM0Ym/YVM/ZhOLQK42ZPND5nKAGf1RV9UyhRKMKA mONw== X-Gm-Message-State: ACgBeo3PqOAe6xXfNL0ML60rsZsQtdgZxxrnd2n5tivsS+Uz1WmYIYWY oQZe03mWGZF0N5GQcB2hLAekU1STJpEXaDT0 X-Received: by 2002:a05:6000:184c:b0:223:2c8b:c43c with SMTP id c12-20020a056000184c00b002232c8bc43cmr28028099wri.16.1662459468804; Tue, 06 Sep 2022 03:17:48 -0700 (PDT) Received: from localhost.localdomain ([2a02:8084:a5c0:5a80:ba98:3a71:8524:e0b1]) by smtp.gmail.com with ESMTPSA id y16-20020a05600c365000b003a62bc1735asm14094361wmq.9.2022.09.06.03.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 03:17:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org Subject: [PATCH v1 00/26] target/s390x: pc-relative translation Date: Tue, 6 Sep 2022 11:17:21 +0100 Message-Id: <20220906101747.344559-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is the S390 specific changes required to reduce the amount of translation for address space randomization. r~ Based-on: 20220906091126.298041-1-richard.henderson@linaro.org ("[PATCH v4 0/7] tcg: pc-relative translation blocks") branch: https://gitlab.com/rth7680/qemu/-/tree/tgt-s90x-pcrel Richard Henderson (26): target/s390x: Use tcg_constant_* in local contexts target/s390x: Use tcg_constant_* for DisasCompare target/s390x: Use tcg_constant_i32 for fpinst_extract_m34 target/s390x: Use tcg_constant_* in translate_vx.c.inc target/s390x: Change help_goto_direct to work on displacements target/s390x: Introduce gen_psw_addr_disp target/s390x: Remove pc argument to pc_to_link_into target/s390x: Use gen_psw_addr_disp in pc_to_link_info target/s390x: Use gen_psw_addr_disp in save_link_info target/s390x: Use gen_psw_addr_disp in op_sam target/s390x: Use ilen instead in branches target/s390x: Move masking of psw.addr to cpu_get_tb_cpu_state target/s390x: Add disp argument to update_psw_addr target/s390x: Don't set gbea for user-only target/s390x: Introduce per_enabled target/s390x: Disable conditional branch-to-next for PER target/s390x: Introduce help_goto_indirect target/s390x: Split per_branch target/s390x: Simplify help_branch target/s390x: Split per_breaking_event from per_branch_* target/s390x: Remove PER check from use_goto_tb target/s390x: Pass original r2 register to BCR tcg: Pass TCGTempKind to tcg_temp_new_internal tcg: Introduce tcg_temp_ebb_new_* tcg: Introduce tcg_temp_is_normal_* target/s390x: Enable TARGET_TB_PCREL include/tcg/tcg-op.h | 4 + include/tcg/tcg.h | 49 +- target/s390x/cpu-param.h | 1 + target/s390x/cpu.h | 13 +- target/s390x/cpu.c | 14 +- target/s390x/tcg/translate.c | 858 ++++++++++++---------------- tcg/tcg.c | 14 +- target/s390x/tcg/translate_vx.c.inc | 45 +- target/s390x/tcg/insn-data.def | 2 +- 9 files changed, 458 insertions(+), 542 deletions(-)