From nobody Tue Nov 26 18:32:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1706571404; cv=none; d=zohomail.com; s=zohoarc; b=klbIVprqn6UlvR8AF5ONpD92wFOSylNxrSekQZ2xQ3YpNo4Lbzwho+bptNLDiNd7ZgI05alP4DQXZ0dpFOBYyOB3edsN2mOpz3QB+Svy4t+8ezQWkjySHWnTounlmbPEL0Uu6nSIa5KsAe+U/YcFFlSgv7rjO3p6DSEyFlkPvI8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706571404; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1XwFQU82n2x7rtRbW4qoRnV77APVvN1DWq124XDZ74k=; b=RFr053lDA6D4Ux4OmRZ7RTt5mkNhS+TdJxaUBslaxeDMRQ2+Znfu/UTDYeGbRfD+QXFyfNKx+CspokpY2wKbbSGwetMOjQf3D/XaSDe0uFrUTb43M6HzVPLGarj4hSuK+F5TpKQFgD9abL2UqXqiJDFlc3g0rNAw7SAueUs+wOQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170657140402347.17708063517148; Mon, 29 Jan 2024 15:36:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUb67-0005fp-Fe; Mon, 29 Jan 2024 18:31:27 -0500 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 1rUb5j-0005Rj-R4 for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:05 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUb5g-00051A-IQ for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:03 -0500 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d73066880eso27121485ad.3 for ; Mon, 29 Jan 2024 15:31:00 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id l6-20020a170902eb0600b001d8dbb867b1sm2710591plb.179.2024.01.29.15.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:30:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706571059; x=1707175859; darn=nongnu.org; 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=1XwFQU82n2x7rtRbW4qoRnV77APVvN1DWq124XDZ74k=; b=KCAlCo+uJJJB1y9wJIAh+Q4PHltIEYY4YuHigpmmYujRKlWPl5USb9tc6nr0O0eg4U sKH81+DT1ZCxrP23Jdk6n/k3MctumCHCvbQSa6dsvavqjIEWc10ymKtndRMzSMqFtdRI IDdVam/0Rq7BCVS2N8mctE7g/Lvr8e69xHMcmJcVhz9XjXDiEkYx3S531TqN5LCO8/aB 2It6wnw1BrRK3jeoBG7uuB1zuldZsTEFXLJqMqrp5uqhVIvdCX2erMVu2I7x3kQ0TQtx AdXT2EHl8sQF7/P7y/bJPdo7GbkxoXJQrAIUxRkyJNWYgLL7mhnwswnxne7C+3B49I5a WGQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706571059; x=1707175859; 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=1XwFQU82n2x7rtRbW4qoRnV77APVvN1DWq124XDZ74k=; b=ZC8NqDrcGDh9ODNArGvII25rDbvMfU/uaBEEhrAnp8pQ97NEcaeNW3v3QMFZWBnZKx S466q5UpsEkRhHH6RLZQx6yLVKa+nYjR5FAyN70IGznwJnZkNYZ3cfvDSCmvm+rROxqV WnXbvEaOaEriTMO877HqcX5QILOna5tBj5DiBtR1VrQ6Cd0doM1PDTVxoNSNpQYl4NE4 ZbKoc6IOpb0ZPn37xUaio4E525vJdEp0FXBPOmboZ0iuAcHO/QzoUIGlj9O1MBNKKQy4 NvAd6mYneJnqXgorPx+iVdvyP6zmUCVqjS2jlT95yQuyLhsQ6W55l08JqJDLI1fRjTYu n4Hg== X-Gm-Message-State: AOJu0Ywcz5sAgqY4C4UESpTi5AOFW/CA28uYSURsuazf9ofPnCaTCccA E6ttNSgT+AFvzxYzdq/s2CdZiZKMY7svfXfTdAkHkrzzSWGI9KX9BwnSqgJMCd/5tGRMsWFt0m7 4UKQ= X-Google-Smtp-Source: AGHT+IHJPRYA25RmPmIKf+ekd/WNqSL73noKmUyADa5tVA/sHvtEyiCB/VbEf8VWZizn00lK3Eg45Q== X-Received: by 2002:a17:903:124a:b0:1d4:e0e:fa1b with SMTP id u10-20020a170903124a00b001d40e0efa1bmr7793715plh.57.1706571059449; Mon, 29 Jan 2024 15:30:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, anjo@rev.ng Subject: [PATCH 05/33] target/arm: Populate CPUClass.mmu_index Date: Tue, 30 Jan 2024 09:30:15 +1000 Message-Id: <20240129233043.34558-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129233043.34558-1-richard.henderson@linaro.org> References: <20240129233043.34558-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1706571406171100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/arm/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 6a96b245f2..1f9ea622bd 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -133,6 +133,11 @@ static bool arm_cpu_has_work(CPUState *cs) | CPU_INTERRUPT_EXITTB); } =20 +static int arm_cpu_mmu_index(CPUState *cs, bool ifetch) +{ + return arm_env_mmu_index(cpu_env(cs)); +} + void arm_register_pre_el_change_hook(ARMCPU *cpu, ARMELChangeHookFn *hook, void *opaque) { @@ -2497,6 +2502,7 @@ static void arm_cpu_class_init(ObjectClass *oc, void = *data) =20 cc->class_by_name =3D arm_cpu_class_by_name; cc->has_work =3D arm_cpu_has_work; + cc->mmu_index =3D arm_cpu_mmu_index; cc->dump_state =3D arm_cpu_dump_state; cc->set_pc =3D arm_cpu_set_pc; cc->get_pc =3D arm_cpu_get_pc; --=20 2.34.1