From patchwork Tue Sep 14 15:53:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 510949 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1687272jao; Tue, 14 Sep 2021 09:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ3t8ZQ+BiXzAEbAsOCgDqCy+6bzxg0tp2wpbNra3rhcT7a2x1VWL5cfbYLWA9rSskHbet X-Received: by 2002:adf:ef02:: with SMTP id e2mr15253426wro.401.1631635608959; Tue, 14 Sep 2021 09:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631635608; cv=none; d=google.com; s=arc-20160816; b=Z/IWmIY2rnkxaAmMY+/D/6ahBchUDGkdLzcQx4ppCNBc92ycFV9n6y7Ks46pCHVhFp npJ1E0Num5p6EKjVou+zJaf8xQatuOcmUF424qiC/gW+1TQI0BXK0gWu2JYku5LmZhzt 9dCx3yLjJry30GgkqV5NBnIdWSGvM7lwZI32tsw/+u2oy11PI+5ZpAf8isTtyTZ7VREY Y9wdzXAfOrH1XYt+9janHmP2RW71gBFwzOM2+BPLgnHLGzRR+hWxEPCR1TMShiiNePFp 4pJ6akVK2T0HBmPfwB0lX0OZ9NI1VLTLNATwOEy4d7RP5i4BLOXjx+6HsGbetJSddzeG oR/w== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=RZUvNMdAO7QAl/5GiOxQ7IKzNAp6d8JCJiSN7rhuSlk=; b=Gbog0T8B4krGG8N7midYBy6eJD5PeIj6j/0cSPagRtL2MjBXPddTnOTt1ukYUfvcPB u/GjUbb5hzcFxWR7mdmGGUaSGmKur+oQdy+i0A9iPWRmfIJnM8549ec5+arHZ7pSAPOQ AsZzLtmORxhHvVKonM/SYSr7z0ITfr08GRwLJrGsWU4sJAXzx/ALBQ5UTh+Hjn8rdPd7 gFuOMhZESPSwStvddV0f90IlkAIkt/kvFAR3eqjSF7EGrADHtBnpooUz1Wgtr488G6PP wsf3PsKhpgfcKZZsoyjDmo69LReizCcP7BFeXZBJA/gCTfalh+P7nSf5Vc3fSknC7/TS 409Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cLWRdMj9; 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 y198si1496256wmc.11.2021.09.14.09.06.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Sep 2021 09:06:48 -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=cLWRdMj9; 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]:56318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQAxL-000364-Tk for patch@linaro.org; Tue, 14 Sep 2021 12:06:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQAkn-0002bW-Oy for qemu-devel@nongnu.org; Tue, 14 Sep 2021 11:53:50 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:43814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQAkj-0003sy-7i for qemu-devel@nongnu.org; Tue, 14 Sep 2021 11:53:47 -0400 Received: by mail-pl1-x62a.google.com with SMTP id v1so8496161plo.10 for ; Tue, 14 Sep 2021 08:53:44 -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:mime-version :content-transfer-encoding; bh=RZUvNMdAO7QAl/5GiOxQ7IKzNAp6d8JCJiSN7rhuSlk=; b=cLWRdMj9fj64c6hfl2VGJAl3BkKm83YENTWPaWFjRD5idlLvjd4FVL6u2GVa7/AApR xNkXHt6ban6SWtWSnGcDIRTO0sa3ZXrZGTmBkg5si0fO8T+SBaqIoMXnGEHoN/RSBIwu U+6Ty826qaZF/9X3iQ7kKcno9NC6CRRS/+z0LovI7+U6TC4roVP4yRYda/d/amH0s4ga 1lAuMbAiQ2PJBIskofzC8RaomLcVYM5Hx3GGAgIgyAmIHvXFEfVri5IF7DY7MpSscONB 3x3FhqjCNjzedGeK0aIHmxoxPdy4bhlt2rsGYw5muW9snfLwETHhtjwQyiFc4TNOAf2d 9akg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RZUvNMdAO7QAl/5GiOxQ7IKzNAp6d8JCJiSN7rhuSlk=; b=fKstQwy//siLW3sSypZHL4H11R5X30zGcaJMA/W0lJ1G5R0nFYIpjyGy0v8kIsvpJC 0j7NVjBHWwirRJP2r+WznP3M0Y+TLynTgq0O8focXYxFBUTOFpP1zIW399xJ4OvxQWXG V7tR1C885SV9FQEzmHirQotVtPmMP3YjYB9fCOni2jQqkELocvB0DnzT3Bm9F/Z1unCD WbxHAEk771ZGqEoLFz0LfHFSYkva4zMJ/XLMMrton3qzWUsdWn+YgHW6OAaWLaHPkwv6 xQkzdWTpuYEG5+S7BbUZFpAwvsYbLq8fFNer64KwMfMAK8lI2zy7esqlOS08wBfHAhSI tsTg== X-Gm-Message-State: AOAM53319Nj0lbfrAlMxMY7IjqoyTUVNfhrce86yqYYBrZkTqyhE4WpB RtxWpnt5ddGaZ9d06DtY0DfrbQvgeSMbPA== X-Received: by 2002:a17:902:e743:b0:13a:eb0:d124 with SMTP id p3-20020a170902e74300b0013a0eb0d124mr15556591plf.38.1631634823562; Tue, 14 Sep 2021 08:53:43 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id g3sm2085985pjm.22.2021.09.14.08.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 08:53:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v3 00/44] tcg patch queue Date: Tue, 14 Sep 2021 08:53:41 -0700 Message-Id: <20210914155342.1296339-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Version 3: Rebase and fix a minor patch conflict. r~ The following changes since commit c6f5e042d89e79206cd1ce5525d3df219f13c3cc: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210913-3' into staging (2021-09-13 21:06:15 +0100) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20210914 for you to fetch changes up to a5b759b6dca7daf87fa5007a7f5784bf22f3830f: tcg/arm: More use of the TCGReg enum (2021-09-14 07:59:43 -0700) ---------------------------------------------------------------- Fix translation race condition for user-only. Fix tcg/i386 encoding for VPSLLVQ, VPSRLVQ. Fix tcg/arm tcg_out_vec_op signature. Fix tcg/ppc (32bit) build with clang. Remove dupluate TCG_KICK_PERIOD definition. Remove unused tcg_global_reg_new. Restrict cpu_exec_interrupt and its callees to sysemu. Cleanups for tcg/arm. ---------------------------------------------------------------- Bin Meng (1): tcg: Remove tcg_global_reg_new defines Ilya Leoshkevich (3): accel/tcg: Add DisasContextBase argument to translator_ld* accel/tcg: Clear PAGE_WRITE before translation accel/tcg/user-exec: Fix read-modify-write of code on s390 hosts Jose R. Ziviani (1): tcg/arm: Fix tcg_out_vec_op function signature Luc Michel (1): accel/tcg: remove redundant TCG_KICK_PERIOD define Philippe Mathieu-Daudé (25): target/avr: Remove pointless use of CONFIG_USER_ONLY definition target/i386: Restrict sysemu-only fpu_helper helpers target/i386: Simplify TARGET_X86_64 #ifdef'ry target/xtensa: Restrict do_transaction_failed() to sysemu accel/tcg: Rename user-mode do_interrupt hack as fake_user_interrupt target/alpha: Restrict cpu_exec_interrupt() handler to sysemu target/arm: Restrict cpu_exec_interrupt() handler to sysemu target/cris: Restrict cpu_exec_interrupt() handler to sysemu target/hppa: Restrict cpu_exec_interrupt() handler to sysemu target/i386: Restrict cpu_exec_interrupt() handler to sysemu target/i386: Move x86_cpu_exec_interrupt() under sysemu/ folder target/m68k: Restrict cpu_exec_interrupt() handler to sysemu target/microblaze: Restrict cpu_exec_interrupt() handler to sysemu target/mips: Restrict cpu_exec_interrupt() handler to sysemu target/nios2: Restrict cpu_exec_interrupt() handler to sysemu target/openrisc: Restrict cpu_exec_interrupt() handler to sysemu target/ppc: Restrict cpu_exec_interrupt() handler to sysemu target/riscv: Restrict cpu_exec_interrupt() handler to sysemu target/sh4: Restrict cpu_exec_interrupt() handler to sysemu target/sparc: Restrict cpu_exec_interrupt() handler to sysemu target/rx: Restrict cpu_exec_interrupt() handler to sysemu target/xtensa: Restrict cpu_exec_interrupt() handler to sysemu accel/tcg: Restrict TCGCPUOps::cpu_exec_interrupt() to sysemu user: Remove cpu_get_pic_interrupt() stubs user: Mark cpu_loop() with noreturn attribute Richard Henderson (13): tcg/i386: Split P_VEXW from P_REXW tcg/ppc: Replace TCG_TARGET_CALL_DARWIN with _CALL_DARWIN tcg/ppc: Ensure _CALL_SYSV is set for 32-bit ELF tcg/arm: Remove fallback definition of __ARM_ARCH tcg/arm: Standardize on tcg_out__{reg,imm} tcg/arm: Simplify use_armv5t_instructions tcg/arm: Support armv4t in tcg_out_goto and tcg_out_call tcg/arm: Split out tcg_out_ldstm tcg/arm: Simplify usage of encode_imm tcg/arm: Drop inline markers tcg/arm: Give enum arm_cond_code_e a typedef and use it tcg/arm: More use of the ARMInsn enum tcg/arm: More use of the TCGReg enum bsd-user/qemu.h | 2 +- include/exec/translate-all.h | 1 + include/exec/translator.h | 44 +-- include/hw/core/tcg-cpu-ops.h | 26 +- include/tcg/tcg-op.h | 2 - linux-user/qemu.h | 2 +- target/alpha/cpu.h | 2 +- target/arm/arm_ldst.h | 12 +- target/arm/cpu.h | 3 +- target/cris/cpu.h | 2 +- target/hppa/cpu.h | 4 +- target/i386/cpu.h | 3 + target/i386/tcg/helper-tcg.h | 2 + target/m68k/cpu.h | 2 + target/microblaze/cpu.h | 2 + target/mips/tcg/tcg-internal.h | 5 +- target/openrisc/cpu.h | 5 +- target/ppc/cpu.h | 4 +- target/riscv/cpu.h | 2 +- target/rx/cpu.h | 2 + target/sh4/cpu.h | 4 +- target/xtensa/cpu.h | 2 + tcg/arm/tcg-target.h | 27 +- accel/tcg/cpu-exec.c | 14 +- accel/tcg/tcg-accel-ops-rr.c | 2 - accel/tcg/translate-all.c | 59 ++-- accel/tcg/translator.c | 39 +++ accel/tcg/user-exec.c | 48 ++- bsd-user/i386/target_arch_cpu.c | 5 - bsd-user/x86_64/target_arch_cpu.c | 5 - linux-user/main.c | 7 - target/alpha/cpu.c | 2 +- target/alpha/helper.c | 5 +- target/alpha/translate.c | 2 +- target/arm/cpu.c | 7 +- target/arm/cpu_tcg.c | 6 +- target/arm/translate-a64.c | 2 +- target/arm/translate.c | 9 +- target/avr/cpu.c | 3 - target/cris/cpu.c | 4 +- target/cris/helper.c | 17 +- target/hexagon/translate.c | 3 +- target/hppa/cpu.c | 2 +- target/hppa/int_helper.c | 7 +- target/hppa/translate.c | 5 +- target/i386/tcg/seg_helper.c | 74 +---- target/i386/tcg/sysemu/seg_helper.c | 62 ++++ target/i386/tcg/tcg-cpu.c | 8 +- target/i386/tcg/translate.c | 10 +- target/m68k/cpu.c | 2 +- target/m68k/op_helper.c | 16 +- target/m68k/translate.c | 2 +- target/microblaze/cpu.c | 2 +- target/microblaze/helper.c | 13 +- target/mips/cpu.c | 2 +- target/mips/tcg/exception.c | 18 -- target/mips/tcg/sysemu/tlb_helper.c | 18 ++ target/mips/tcg/translate.c | 8 +- target/mips/tcg/user/tlb_helper.c | 5 - target/nios2/cpu.c | 5 +- target/openrisc/cpu.c | 2 +- target/openrisc/interrupt.c | 2 - target/openrisc/translate.c | 2 +- target/ppc/cpu_init.c | 2 +- target/ppc/excp_helper.c | 21 +- target/ppc/translate.c | 5 +- target/riscv/cpu.c | 2 +- target/riscv/cpu_helper.c | 5 - target/riscv/translate.c | 5 +- target/rx/cpu.c | 2 +- target/rx/helper.c | 4 + target/s390x/tcg/translate.c | 16 +- target/sh4/cpu.c | 2 +- target/sh4/helper.c | 9 +- target/sh4/translate.c | 4 +- target/sparc/cpu.c | 4 +- target/sparc/translate.c | 2 +- target/xtensa/cpu.c | 2 +- target/xtensa/exc_helper.c | 7 +- target/xtensa/translate.c | 5 +- target/mips/tcg/micromips_translate.c.inc | 2 +- target/mips/tcg/mips16e_translate.c.inc | 4 +- target/mips/tcg/nanomips_translate.c.inc | 4 +- tcg/arm/tcg-target.c.inc | 517 ++++++++++++++++-------------- tcg/i386/tcg-target.c.inc | 13 +- tcg/ppc/tcg-target.c.inc | 25 +- target/openrisc/meson.build | 6 +- 87 files changed, 702 insertions(+), 630 deletions(-)