From patchwork Tue Oct 11 03:19:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 614159 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2373530pvb; Mon, 10 Oct 2022 20:37:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RUwxgqrgNUUaCP/DTHXc33P891/QNviWqqrmt52KdlI5Z8KCxVylqDglqPncz+jv2FfW8 X-Received: by 2002:ac8:5e0a:0:b0:39a:2960:d4a6 with SMTP id h10-20020ac85e0a000000b0039a2960d4a6mr6723916qtx.448.1665459465768; Mon, 10 Oct 2022 20:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665459465; cv=none; d=google.com; s=arc-20160816; b=OKtAXlNLvci7LTmLzZzn8r7ec+/ZxZyq8/C6NcPW6CV51AUAhZkFXp6WdhfhbxNm1e kV3d+nVYhmJX3QFDTb5fQcIZOEgtSVGIE+0cMPOAroeovLrHj0N/PGs2oEjeB7vvFrSY gPrY4+RPPPdsZghV9LP58FXKQQpCBv9EF/1koLG7WZeA3Mdgd2QbFrhIOb4GGQvO+1rQ UqxA7z4GIMNTn7tdY+sa7cveus5r1VhkElwUcICMUxLFEvCJASHtPFQ93Qdw+spZVGWn QTpMU8Bk9GD9Bs/AltwJUpeVkZ+kWiSd7XkgNUDHusk6X1haqSB+h92nGBP2ndPF6z4E +G+A== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eI+72a+zEZxV/Jolsa9Dnr52GdI9trlBieK7TxOdCAo=; b=JmJKdIMtsWvrkZ7SeHT+8O2gYagUjAlYyCy38OHs11+sqezuAd8K2mKBNLWPSHsLJ+ GtinV+gnIybXeTQHH+aOdVc31G1bvb2F1eeivS1OuunwJ29j2lj5XLswGuZx9WW6o/85 MGn9nebicl85ANaX9xBUKS93qOKGIeav9Kv6FZXhiIlORGZ1tUd8ATw/nqObbvuzw29/ xpNp1TO/ko2MEXLKpFAqlj7dkL4oJQeA8OaCtyRoPEDGDWWubAZNYDtmQuWrPgreePMG qUJWQrvRlcjE2vLjJAigmYpiBui361ZTwZHGqjlsBdRqlXoL7ov2Rx745M5vbxySxkfw gAaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EvvEwixP; 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 hf7-20020a0562140e8700b004afb621a445si6289764qvb.75.2022.10.10.20.37.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Oct 2022 20:37:45 -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=EvvEwixP; 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]:44758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi65R-0005K6-Au for patch@linaro.org; Mon, 10 Oct 2022 23:37:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi5o4-0002dd-BZ for qemu-devel@nongnu.org; Mon, 10 Oct 2022 23:19:49 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:36502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi5o2-00037H-Sb for qemu-devel@nongnu.org; Mon, 10 Oct 2022 23:19:48 -0400 Received: by mail-pj1-x1034.google.com with SMTP id d7-20020a17090a2a4700b0020d268b1f02so5317921pjg.1 for ; Mon, 10 Oct 2022 20:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eI+72a+zEZxV/Jolsa9Dnr52GdI9trlBieK7TxOdCAo=; b=EvvEwixPpytt52H1US8QZnrl4ptv/e3tjqhY1PZhjdzyARkzS7F6Hg6lMhTAMKwRjZ PYgKRZ/Lb5JMx80fPtRgOBaon2N4Mi7nz8QT8++SUgaRWDBUERYCMXMdH6nQhldHI0Eh 5Z6LwRNEvh5OYcqBNmPhv1W4fmIbPozLd9fwpTje/6pG8BCeNqsDR6EgebV3XBqBv2ru 7C5rILNL9hACqIOqruoNoX/ESGq1vQdSeOe1+Q/YY6wqfB0xGHVcIEZnlraRB+s4k9N+ rDOwcPMzQKSo8zCkV+7d1NSTo32ylly2wvVw77QIrpX4irURekA8u1bdewCqGFWr/Olc tWlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eI+72a+zEZxV/Jolsa9Dnr52GdI9trlBieK7TxOdCAo=; b=L8MYbq0PCwEZxeWYEAQLqJMTB8Vs+4abX4c5b4O20JCtDrdaJRYxE3UQzJTvAumvCv ZWUSSZpWboapbMFgEYu6B+uQnwsmjxuNYlmbeSnOo6L2U09++IcgEa3uDlnogBHP+3s9 Mi22w/Z1fZOdWdPD/vD6ge5hvSKxg9ZmCHLkW8C9OhW4SI8zvEID5AF/5EbduXetDL70 ffeEDLZYKgj7FmEkPwoRFlu3hY1CKaUdwdLR12KedEfNPaJAqrj9N0+SikbNDPuGTilU 5PDQH0czLVeeX4YqOMqMf3nUeGUkRn6y+QSQCsxZGC+wRBlRkXvx0uF2keQLXfBijanu qRuw== X-Gm-Message-State: ACrzQf2TQq5imclVRCb3fxcTbabPGjVcW4be/GRL9eiE3s1So6OUMxkC OBlCuu/jjKKcGtMvNQSRWEyz1k/4lMgFEw== X-Received: by 2002:a17:902:724a:b0:177:fd96:37bf with SMTP id c10-20020a170902724a00b00177fd9637bfmr20897117pll.25.1665458385374; Mon, 10 Oct 2022 20:19:45 -0700 (PDT) Received: from stoup.. ([2602:47:d49d:ec01:5aa4:aba1:1c91:a9b7]) by smtp.gmail.com with ESMTPSA id o74-20020a62cd4d000000b0055f209690c0sm7663567pfg.50.2022.10.10.20.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 20:19:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell Subject: [PATCH v4 17/24] target/arm: Add ARMFault_UnsuppAtomicUpdate Date: Mon, 10 Oct 2022 20:19:04 -0700 Message-Id: <20221011031911.2408754-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011031911.2408754-1-richard.henderson@linaro.org> References: <20221011031911.2408754-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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" This fault type is to be used with FEAT_HAFDBS when the guest enables hw updates, but places the tables in memory where atomic updates are unsupported. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/internals.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/arm/internals.h b/target/arm/internals.h index 76ec7ee8cc..e195d771e0 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -338,6 +338,7 @@ typedef enum ARMFaultType { ARMFault_AsyncExternal, ARMFault_Debug, ARMFault_TLBConflict, + ARMFault_UnsuppAtomicUpdate, ARMFault_Lockdown, ARMFault_Exclusive, ARMFault_ICacheMaint, @@ -524,6 +525,9 @@ static inline uint32_t arm_fi_to_lfsc(ARMMMUFaultInfo *fi) case ARMFault_TLBConflict: fsc = 0x30; break; + case ARMFault_UnsuppAtomicUpdate: + fsc = 0x31; + break; case ARMFault_Lockdown: fsc = 0x34; break;