From patchwork Fri Jun 26 15:13:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 191826 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp585590ilg; Fri, 26 Jun 2020 08:22:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1g7iUNXQQM/K/Z3FjDuMkhb9i1UBdRiMukdd/DbRl9ZcEbSNAbgoy03ACVb7PYOH/gBu1 X-Received: by 2002:a25:3203:: with SMTP id y3mr6286763yby.77.1593184975257; Fri, 26 Jun 2020 08:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593184975; cv=none; d=google.com; s=arc-20160816; b=kCy02t7POSbvnX3IKnUKyO8juDUbASvfXAdwY58cdS7xE+a418yWcGliB/bi9ziv2e WY0djMK9Ie0OH1ypCMU0B9kNf5D2QsxewmpVtb26kSby+V3+SNfOzUA4Z6ygjY2/PHR3 PM9IM0k9a2pOfUkdXXEtNA2vp7Gp9EsNADO4dCiRjMHMw/+QkX4cdL5mH0tZZxHW+vUZ 4PCuJRQDRcPo7gHiP6Vo/2pL7nyLY4XvQMgJC01y+qpDQjZ8WbrjV5wF+T9+3goJ11BV qK6zoA/b9KX2e7/ZrOZQ/M/lxLLLmHprTRPPKu0/rAreAn1JaS48kfwtVfjPIEx10g62 U3yA== 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:to:from:dkim-signature; bh=iuggorem9kG/dEp137reT753s8RZfimwKZKwNlrFDN8=; b=abhOzTEi9gY/BRR5R3pgAW//jOVIlgReaHhVaIYChn4RgMvFz+gfcdg66mv5ZcpixM c783MRJGOx6qzy6/efaNLSfhGSYX42KloAKt41QlnZTGoQjpKXoZV+bcTnN/Ob3CSeqN c5bIncxNSBBKAEYBE990o1rL5MOF8P3Xxl13O7M8WsOPqIgfCB9110OPhlE5gSbjDByf emiB6nRQvki1MGPzA/d5dzCoWswOvk+i1SjAPGuaH31U2snIC7NSAaaqWeLU2pWQBkvv pk9aqrw2m3iixNNjKcRQPFYP44oJ82HFAOT9x+s3MU1s2Zjt687wCpjOgbO2J88cVu/D xfWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T39ySY3y; 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 d38si28578821ybe.81.2020.06.26.08.22.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jun 2020 08:22:55 -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=T39ySY3y; 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]:45062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joqBq-0005rk-OQ for patch@linaro.org; Fri, 26 Jun 2020 11:22:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joq3j-0001nG-Cv for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:14:31 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:34834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joq3h-0006Aa-12 for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:14:31 -0400 Received: by mail-wr1-x42a.google.com with SMTP id g18so9900198wrm.2 for ; Fri, 26 Jun 2020 08:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuggorem9kG/dEp137reT753s8RZfimwKZKwNlrFDN8=; b=T39ySY3yOdG/WqFtaCHeFElJ5D7zdJT/GqAUAwCM2gFIUndSfFL15y9SM/AadAYFOU pNU+SxErshFa6Co49CRoPB90UmSnVSKYEo7i12uvIcy7KisqEmxsdHB9/tBZ68cGoQfI Vjlk9lqp72mJ5k/oKHI0Zj7DFtRaoTxqGEGMQT65k0vswAoCnKlFO3OdYh7wL7gxyndj MJpwSrx6e5aIGDMce5aMq0nWDoii+RnuoJSOAM6njEnrsINOxNTmOlOeu17nExYSUpj4 1afE8T3pbSvqnyp3AFoDjDqRIQyBVBI3Tk6Yyyr9vrtstpuks4Bwoc0dNnHtzIyTwq5h Gbxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuggorem9kG/dEp137reT753s8RZfimwKZKwNlrFDN8=; b=NgVgSgHbX/1IST57MnB3anjdaBQfoVqQS2MlzOIGWoPfOGVnb9MD6s7NZ9KEh7VcJ8 zt+Tz1oSu0gKZKQv6dZlq2QwObwXykBxkYoHCO5I7V7OaEkMSwEUlB/HfGrjnNxkNfhY k+9EsMYCgJV/jglmckf4f0qVjElCUJr7t7FJpb8dRDua82mqUpYra2E/n7LZ5SHxjm8s rAvm7khuMZRdvtUkIPRhxNh6saCNPONEc81jLL9zvMMsrHh9qoFMHijAT7MHtsmA8v8j Z20y7GmZOQzRDQSO+IbMPrq6Wuwoluu0wJmmFVfw1EHGgn2HqtjnS6oyRWNg+F880A8i 1D6Q== X-Gm-Message-State: AOAM533EWMmlVTVEPhn5sjQY58gjgEzzyXc+q5Aaj5zIViGpmPBYZQk/ VyiKaxtsW+pCkD6EMgIRKx2kV+0OlxFUfQ== X-Received: by 2002:adf:f083:: with SMTP id n3mr4291611wro.297.1593184467089; Fri, 26 Jun 2020 08:14:27 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id w13sm37838852wrr.67.2020.06.26.08.14.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 08:14:26 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 00/57] target-arm queue Date: Fri, 26 Jun 2020 16:13:27 +0100 Message-Id: <20200626151424.30117-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Mostly this is RTH's memtag series, but there are also some cleanups from Philippe. thanks -- PMM The following changes since commit 10f7ffabf9c507fc02382b89912003b1c43c3231: Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20200626' into staging (2020-06-26 12:14:18 +0100) are available in the Git repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20200626 for you to fetch changes up to c7459633baa71d1781fde4a245d6ec9ce2f008cf: target/arm: Enable MTE (2020-06-26 14:32:24 +0100) ---------------------------------------------------------------- target-arm queue: * hw/arm/aspeed: improve QOM usage * hw/misc/pca9552: trace GPIO change events * target/arm: Implement ARMv8.5-MemTag for system emulation ---------------------------------------------------------------- Philippe Mathieu-Daudé (12): hw/arm/aspeed: Remove extraneous MemoryRegion object owner hw/arm/aspeed: Rename AspeedBoardState as AspeedMachineState hw/arm/aspeed: QOM'ify AspeedMachineState hw/i2c/core: Add i2c_try_create_slave() and i2c_realize_and_unref() hw/misc/pca9552: Rename 'nr_leds' as 'pin_count' hw/misc/pca9552: Rename generic code as pca955x hw/misc/pca9552: Add generic PCA955xClass, parent of TYPE_PCA9552 hw/misc/pca9552: Add a 'description' property for debugging purpose hw/misc/pca9552: Trace GPIO High/Low events hw/arm/aspeed: Describe each PCA9552 device hw/misc/pca9552: Trace GPIO change events hw/misc/pca9552: Model qdev output GPIOs Richard Henderson (45): target/arm: Add isar tests for mte target/arm: Improve masking of SCR RES0 bits target/arm: Add support for MTE to SCTLR_ELx target/arm: Add support for MTE to HCR_EL2 and SCR_EL3 target/arm: Rename DISAS_UPDATE to DISAS_UPDATE_EXIT target/arm: Add DISAS_UPDATE_NOCHAIN target/arm: Add MTE system registers target/arm: Add MTE bits to tb_flags target/arm: Implement the IRG instruction target/arm: Revise decoding for disas_add_sub_imm target/arm: Implement the ADDG, SUBG instructions target/arm: Implement the GMI instruction target/arm: Implement the SUBP instruction target/arm: Define arm_cpu_do_unaligned_access for user-only target/arm: Implement LDG, STG, ST2G instructions target/arm: Implement the STGP instruction target/arm: Restrict the values of DCZID.BS under TCG target/arm: Simplify DC_ZVA target/arm: Implement the LDGM, STGM, STZGM instructions target/arm: Implement the access tag cache flushes target/arm: Move regime_el to internals.h target/arm: Move regime_tcr to internals.h target/arm: Add gen_mte_check1 target/arm: Add gen_mte_checkN target/arm: Implement helper_mte_check1 target/arm: Implement helper_mte_checkN target/arm: Add helper_mte_check_zva target/arm: Use mte_checkN for sve unpredicated loads target/arm: Use mte_checkN for sve unpredicated stores target/arm: Use mte_check1 for sve LD1R target/arm: Tidy trans_LD1R_zpri target/arm: Add arm_tlb_bti_gp target/arm: Add mte helpers for sve scalar + int loads target/arm: Add mte helpers for sve scalar + int stores target/arm: Add mte helpers for sve scalar + int ff/nf loads target/arm: Handle TBI for sve scalar + int memory ops target/arm: Add mte helpers for sve scatter/gather memory ops target/arm: Complete TBI clearing for user-only for SVE target/arm: Implement data cache set allocation tags target/arm: Set PSTATE.TCO on exception entry target/arm: Always pass cacheattr to get_phys_addr target/arm: Cache the Tagged bit for a page in MemTxAttrs target/arm: Create tagged ram when MTE is enabled target/arm: Add allocation tag storage for system mode target/arm: Enable MTE include/hw/arm/aspeed.h | 12 +- include/hw/i2c/i2c.h | 2 + include/hw/misc/pca9552.h | 16 +- target/arm/cpu.h | 50 +- target/arm/helper-a64.h | 16 + target/arm/helper-sve.h | 488 ++++++++++++++ target/arm/helper.h | 2 + target/arm/internals.h | 153 ++++- target/arm/translate-a64.h | 5 + target/arm/translate.h | 23 +- hw/arm/aspeed.c | 46 +- hw/arm/virt.c | 55 +- hw/i2c/core.c | 18 +- hw/misc/pca9552.c | 216 +++++-- target/arm/cpu.c | 81 ++- target/arm/cpu64.c | 5 + target/arm/helper-a64.c | 94 +-- target/arm/helper.c | 423 ++++++++++--- target/arm/m_helper.c | 11 +- target/arm/mte_helper.c | 906 ++++++++++++++++++++++++++ target/arm/op_helper.c | 16 + target/arm/sve_helper.c | 616 ++++++++++++++---- target/arm/tlb_helper.c | 13 +- target/arm/translate-a64.c | 657 ++++++++++++++++--- target/arm/translate-sve.c | 1366 ++++++++++++++++++++++++++-------------- target/arm/translate-vfp.inc.c | 4 +- target/arm/translate.c | 16 +- hw/misc/trace-events | 4 + target/arm/Makefile.objs | 1 + 29 files changed, 4391 insertions(+), 924 deletions(-) create mode 100644 target/arm/mte_helper.c