From patchwork Tue Sep 3 16:08:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172852 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp92324ily; Tue, 3 Sep 2019 09:38:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnAi5buyKoXZ9amxIr3gnTbTPJ3pedRJ3pMpU47biAYrDbuLaG1JC7OCZf7C2qNemCx2R+ X-Received: by 2002:a17:906:4d86:: with SMTP id s6mr18453707eju.154.1567528696987; Tue, 03 Sep 2019 09:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567528696; cv=none; d=google.com; s=arc-20160816; b=tR5ule5oU/jD0+/DifA0hVHuNVwZmNy9vB9sGK5CduOM+g4ii5qeBbV2LyQRVqu3im 34mOPtz4SdDCkN4mxHTjsamYpRRn1Q4lbqxu25JnwcQO4Tx40y+EQ9FSKMxPXcGvb4hw pzSIXQkPBYE/C27y58yxiK1lzvWAsRDRCbwL0PKTEMo956LJ93meL+q4xkqserAmfC+c pcX10XSW6b1SexmZDbcf/C4XZqnWXAZCNXTLsdpAZX3i4vbX1wLEPi4OZZYnNYtnogyu IoZ6gEfXMBsG+EwJTsOf8gxP/Dncybx7VwKI65BIlTjNz6WJaTiAEcNaVQfi4NHCkgKN AEzQ== 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 :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=HFt+SNoHxnXsKubH38yPgmAkrGKo2nrflpCUOr6pM2U=; b=v6wa+nJ1KlvnRlsdrL//3Vr7x5t78tqqgZb/OEZNPuVGWnUMBDGoSPjuFlX2fFeDGw KDEyFK6yM9858y/xNCgBlvvDG5Y5F8qFS+pSiKo73EZ2od/Zzr8rgiPEKaNKrX0N3/eO oFkHAeupI6jQ729KoSswJ9rESNj+1Vf1/VDYxcfMRX2Nmcu39OFiVZGHjwpyxh+zVttT S9sIB0RRGvape7cZ4fXpMMyYnbscKw5sKYvFRURiMI2cHIM9HWdjelmhHB4s0I036BZd SGj/sQy9LSBc2kQUWpQHGIMs6B5ytWIEujIGIOp/tm8a7qfDD4PCdQTFV5LIxIQZ6ZE0 rLBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=a7u21qfK; 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 f30si1493234ede.435.2019.09.03.09.38.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Sep 2019 09:38:16 -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=a7u21qfK; 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 ([::1]:49088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5Bot-0006dZ-J9 for patch@linaro.org; Tue, 03 Sep 2019 12:38:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37034) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BMd-0000vI-Qr for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5BMc-0003ae-A3 for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:03 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:39204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5BMc-0003Zo-2O for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:02 -0400 Received: by mail-pg1-x541.google.com with SMTP id u17so9393876pgi.6 for ; Tue, 03 Sep 2019 09:09:01 -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=HFt+SNoHxnXsKubH38yPgmAkrGKo2nrflpCUOr6pM2U=; b=a7u21qfKLWizLCq3qD8HlqRhSDNytMzhWCE9NsNeup9DXGQaRyDPudu82tBfqx/M7n frWGulfU/tDDg7ruBuIyeLNYg2/f+yclzFl2YhdsUAkvc57eJ5uAYYboVqDw4nMeVSPV XfdLYE1z1EMbyWrGzmlOP78cjTOeyBBVWt0fJ0OEGaPyypMCThmAQs8YKOJdo7UoSM7z OC0iwBkVHYLYoje/z4MZygAIovsJ2byolM6GD0O+r1c3PmZQKySyq6JeqpPi6iW/8Aot gy1PpoDfwN6FRLA+OlegFJmRrAgr0YwJ6CZK7xf0m4hfj51wFL/bCKieOY8KMotw8X+u 9Pbw== 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:mime-version :content-transfer-encoding; bh=HFt+SNoHxnXsKubH38yPgmAkrGKo2nrflpCUOr6pM2U=; b=MM/FS0HiYkZDppSYnyBEKCKYAYN8t2nkLkP6QzLwrakGKy7RCrBEE2J4KB+bBMEfpI 8mEKo+AiL84IffHjh/qqn0eGOjSYUVxZeik1xXalWb+lhN90bpq6QwKoPOQLbBW6XaJA 6cta9o8/t2xfZ55d0h2L2mAG1o/CIn6IDwtmA4u1VIgHt6LnWJM0q/otaYzR7+mj8oVh sz7q1kFmAHMcTrxVsWSdUFLSdhHX/Fcd0X/6hou+CY0uX8etyAlWnyvjam16rXKlp2V+ +72koHUT/B1RvRqPWIcjZpHKfokDTTBtdWtmhQtotA4VdwVGQrd9sHlZEe1a2v84YU0K tZ5Q== X-Gm-Message-State: APjAAAXW6kvkju1doqdFEaizZoIqc/wIpphF6dZSevVw4mw05TDwhqd6 m3ZLO+oC39KcVG3K2245oENVx1OfDj8= X-Received: by 2002:a17:90a:ba96:: with SMTP id t22mr53409pjr.104.1567526940324; Tue, 03 Sep 2019 09:09:00 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 127sm28089711pfy.56.2019.09.03.09.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:08:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 09:08:22 -0700 Message-Id: <20190903160858.5296-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::541 Subject: [Qemu-devel] [PATCH 00/36] tcg patch queue 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" The following changes since commit fec105c2abda8567ec15230429c41429b5ee307c: Merge remote-tracking branch 'remotes/kraxel/tags/audio-20190828-pull-request' into staging (2019-09-03 14:03:15 +0100) are available in the Git repository at: https://github.com/rth7680/qemu.git tags/pull-tcg-20190903 for you to fetch changes up to c25c283df0f08582df29f1d5d7be1516b851532d: tcg: Factor out probe_write() logic into probe_access() (2019-09-03 08:34:18 -0700) ---------------------------------------------------------------- Allow page table bit to swap endianness. Reorganize watchpoints out of i/o path. Return host address from probe_write / probe_access. ---------------------------------------------------------------- David Hildenbrand (11): exec: Factor out core logic of check_watchpoint() tcg: Check for watchpoints in probe_write() s390x/tcg: Use guest_addr_valid() instead of h2g_valid() in probe_write_access() s390x/tcg: Fix length calculation in probe_write_access() tcg: Factor out CONFIG_USER_ONLY probe_write() from s390x code tcg: Enforce single page access in probe_write() mips/tcg: Call probe_write() for CONFIG_USER_ONLY as well hppa/tcg: Call probe_write() also for CONFIG_USER_ONLY s390x/tcg: Pass a size to probe_write() in do_csst() tcg: Make probe_write() return a pointer to the host page tcg: Factor out probe_write() logic into probe_access() Richard Henderson (6): exec: Move user-only watchpoint stubs inline cputlb: Fold TLB_RECHECK into TLB_INVALID_MASK exec: Factor out cpu_watchpoint_address_matches cputlb: Fix size operand for tlb_fill on unaligned store cputlb: Remove double-alignment in store_helper cputlb: Handle watchpoints via TLB_WATCHPOINT Tony Nguyen (19): tcg: TCGMemOp is now accelerator independent MemOp memory: Introduce size_memop target/mips: Access MemoryRegion with MemOp hw/s390x: Access MemoryRegion with MemOp hw/intc/armv7m_nic: Access MemoryRegion with MemOp hw/virtio: Access MemoryRegion with MemOp hw/vfio: Access MemoryRegion with MemOp exec: Access MemoryRegion with MemOp cputlb: Access MemoryRegion with MemOp memory: Access MemoryRegion with MemOp hw/s390x: Hard code size with MO_{8|16|32|64} target/mips: Hard code size with MO_{8|16|32|64} exec: Hard code size with MO_{8|16|32|64} memory: Access MemoryRegion with endianness cputlb: Replace size and endian operands for MemOp memory: Single byte swap along the I/O path cputlb: Byte swap memory transaction attribute target/sparc: Add TLB entry with attributes target/sparc: sun4u Invert Endian TTE bit include/exec/cpu-all.h | 8 +- include/exec/exec-all.h | 10 +- include/exec/memattrs.h | 2 + include/exec/memop.h | 134 +++++++++++ include/exec/memory.h | 12 +- include/hw/core/cpu.h | 37 +++ target/arm/translate-a64.h | 2 +- target/arm/translate.h | 2 +- target/sparc/cpu.h | 2 + tcg/tcg-op.h | 80 +++--- tcg/tcg.h | 101 +------- trace/mem-internal.h | 4 +- trace/mem.h | 4 +- accel/tcg/cputlb.c | 414 ++++++++++++++++++-------------- accel/tcg/user-exec.c | 32 +++ exec.c | 177 +++----------- hw/intc/armv7m_nvic.c | 13 +- hw/s390x/s390-pci-inst.c | 11 +- hw/vfio/pci-quirks.c | 7 +- hw/virtio/virtio-pci.c | 15 +- memory.c | 58 +++-- memory_ldst.inc.c | 81 ++----- target/alpha/translate.c | 2 +- target/arm/translate-a64.c | 48 ++-- target/arm/translate-sve.c | 2 +- target/arm/translate.c | 32 +-- target/hppa/op_helper.c | 2 - target/hppa/translate.c | 14 +- target/i386/translate.c | 132 +++++----- target/m68k/translate.c | 2 +- target/microblaze/translate.c | 4 +- target/mips/op_helper.c | 13 +- target/mips/translate.c | 8 +- target/openrisc/translate.c | 4 +- target/ppc/translate.c | 12 +- target/riscv/insn_trans/trans_rva.inc.c | 8 +- target/riscv/insn_trans/trans_rvi.inc.c | 4 +- target/s390x/mem_helper.c | 13 +- target/s390x/translate.c | 6 +- target/s390x/translate_vx.inc.c | 10 +- target/sparc/mmu_helper.c | 40 +-- target/sparc/translate.c | 14 +- target/tilegx/translate.c | 10 +- target/tricore/translate.c | 8 +- tcg/aarch64/tcg-target.inc.c | 26 +- tcg/arm/tcg-target.inc.c | 26 +- tcg/i386/tcg-target.inc.c | 24 +- tcg/mips/tcg-target.inc.c | 16 +- tcg/optimize.c | 2 +- tcg/ppc/tcg-target.inc.c | 12 +- tcg/riscv/tcg-target.inc.c | 20 +- tcg/s390/tcg-target.inc.c | 14 +- tcg/sparc/tcg-target.inc.c | 6 +- tcg/tcg-op.c | 38 +-- tcg/tcg.c | 2 +- MAINTAINERS | 1 + tcg/README | 2 +- 57 files changed, 918 insertions(+), 865 deletions(-) create mode 100644 include/exec/memop.h