From patchwork Thu Aug 10 02:35:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 712341 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:baf:b0:129:c516:61db with SMTP id gf47csp354792rwb; Wed, 9 Aug 2023 19:36:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc/vo7H2phOi2Vo9wKeVocKmQCUrk4xbIDo1CKZivv3gsRD8iapPGPqE/CwmyQXOkkiT/+ X-Received: by 2002:ac8:5a84:0:b0:406:866a:ddb5 with SMTP id c4-20020ac85a84000000b00406866addb5mr1506256qtc.18.1691635000945; Wed, 09 Aug 2023 19:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691635000; cv=none; d=google.com; s=arc-20160816; b=xiHqmiEAuyxk8aTZUeBRBysRvhkFtThDZ0DIbfx+1B7Q5lmdMlN4y/j9+N8u4Y4Rxc SFSk2czts/UjTyjoFud8xrppsBY7EQR7O2oFZr6fvkUTo132hcnALiKw5eKaoGpGd5T5 LXWRsovKidAAHgu4Q+oRoy7a8H0E9TBHJy+P6AQpiYEswZf+oyuq7JUzLWVTCXUnHEcO 9FQYYvYcCbMDnPhTn8qu9Ylgt19+P2vg7fT30UsvT6B2sRl5VrJdQZ9+WUVihg0JteLP UfiBFcLcCO0kn0zXzC2nRYG4K40qvYLcr8AK1enKr4O4LjVRgcHJoUA7dl9IyYo3SjAj YMMA== 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=CpX0550wKMCux/3GBST6e64zt0DiUd6H3+LGhoX5Le4=; fh=oweadga+1U1BKjDqlK8hSmEWEC1EUfcsKuPkDinEDsU=; b=EILyI0BF5Mv1QLzula+PIKCGdrbopE5WLtg7BvOTC67Y1srekB9hzJBEbN1Neepbl/ Sv/IH+EtDGfxsg3F9iNrFv0XcOHls3Hpb8YaFNR/YQLMwMCyCHMROcVEbrR2MafnaePO QmLiYUudqmn07gZwCkusgJB7ZiDG5W03lz7vUM6FjvKnjefRSohpgceTYAO6fCMIcalF E8P36F3XLdbYMNTVC7Ya5C84awdksV7MiSraGqcQt2P4jpycVnFe4K6aOvxMbFVOmHL4 /SH3GRptUiuG2Tzpu3XgLm5ekTng//5bbI6NhsD4OnBc9tZg01e9z85BOX/Owi4zmKpr K+hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nxE6HNRC; 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 w6-20020a05622a190600b00403f7c63f44si327015qtc.145.2023.08.09.19.36.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Aug 2023 19:36:40 -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=nxE6HNRC; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTvWl-0000ux-JY; Wed, 09 Aug 2023 22:35:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTvWj-0000tw-BD for qemu-devel@nongnu.org; Wed, 09 Aug 2023 22:35:53 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTvWh-0004x1-Os for qemu-devel@nongnu.org; Wed, 09 Aug 2023 22:35:53 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-687087d8ddaso403908b3a.1 for ; Wed, 09 Aug 2023 19:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691634950; x=1692239750; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CpX0550wKMCux/3GBST6e64zt0DiUd6H3+LGhoX5Le4=; b=nxE6HNRCusB6fZYY6XNCichRSFLYz/wJ+Z80eX+cTtzkebnHEr7zNV/9ryCAMh/VX9 xa9dGe5ZUocQ1flZzigcxXUPIFGccTSyLGesSW4yFyd6kA+GF+FV0XZi6h4x6+P2Pmyy nDenJJBTgak0vLbieRfJqbJh+zUOBmW0olwE4qBVYhcwtwLb6366JA1RzdjRfbBVYtlP KT/Fo/Y/usHC8XJxEhcjEeO4RcKBGJxJDOYUwayOfy64lOl67qzOTMiQBPvXwZ727lwU JXpXyiOO58QRMER1Y5U08BrjpUw7xNBA0/wX335ELzn11snWJvp36BvIBqiBXFySH3FF YOHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691634950; x=1692239750; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CpX0550wKMCux/3GBST6e64zt0DiUd6H3+LGhoX5Le4=; b=l0wTCD218XY1Cvyb1SUq4n0ACVq4D3iJd7w+JBOdlDPKZKXDHwX3Ra7Q6jteyUStof Cmrv1LEYvXGmtD1G7NDVW2oePQ7PpoHBEBmkmNTyjhPTsku7Majxq7Y99nTK7Mzlxm8q XlzbNmsF9rp6MWURd+weEmK8WoxHRFGlQsEQeUQhXThy0uc430vVe3YXBpFeL18U5XV2 slAgjrQK22Qsj71h5Jfur9qUn1p7GReWiDBt5SVUSaUC5Us7rZesXx1YmrD8Lp9hoRMk fai1J7FWBrWG62zoRKHWKO5ImuSHdm8+AzUUFBrsnmhx5POk40NKBrvr3wjGrijSEQ94 EwwA== X-Gm-Message-State: AOJu0Yy8F5KSLEYlwtf1UJsdD/uUJ+cXwM8rVtEJ73ZKEV03ShISXMvF nB+xrLrHVvf0QCRX5JpXOH6VpGCNgxRKnDhyaEs= X-Received: by 2002:a05:6a20:1583:b0:11d:8a8f:655d with SMTP id h3-20020a056a20158300b0011d8a8f655dmr1541785pzj.4.1691634950092; Wed, 09 Aug 2023 19:35:50 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:6bf0:9674:6ac4:f74c]) by smtp.gmail.com with ESMTPSA id z7-20020aa791c7000000b0066ebaeb149dsm287283pfa.88.2023.08.09.19.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 19:35:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH for-8.2 0/5] target/arm: Implement cortex-a710 Date: Wed, 9 Aug 2023 19:35:43 -0700 Message-Id: <20230810023548.412310-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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.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-bounces+patch=linaro.org@nongnu.org This is one of the first generation Armv9 cores, and gives us something concrete to test in that area. Notably, it supports MTE. The first patch is a bug fix of sorts for neoverse-v1, as we don't, and won't, support FEAT_TRF. The only thing missing for the a710 is FEAT_MPAM. I haven't looked at that properly, and I believe that there may already be some work done on that within Linaro -- even if a stub implementation. r~ Richard Henderson (5): target/arm: Disable FEAT_TRF in neoverse-v1 target/arm: Reduce dcz_blocksize to uint8_t target/arm: Allow cpu to configure GM blocksize target/arm: Support more GM blocksizes target/arm: Implement cortex-a710 docs/system/arm/virt.rst | 1 + target/arm/cpu.h | 5 +- target/arm/internals.h | 6 -- target/arm/tcg/translate.h | 2 + hw/arm/virt.c | 1 + target/arm/helper.c | 11 ++- target/arm/tcg/cpu64.c | 172 ++++++++++++++++++++++++++++++++- target/arm/tcg/mte_helper.c | 91 ++++++++++++++--- target/arm/tcg/translate-a64.c | 5 +- 9 files changed, 263 insertions(+), 31 deletions(-)