From nobody Tue Nov 26 14:33:13 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=1706853533; cv=none; d=zohomail.com; s=zohoarc; b=hShSfLKhGWO+LSGiiF+CwMgFBMb9O5LEjTrDJwhjzwJHQf9uUALxMc09San9hFBY/gf+5yyFdOwv/15LIIzj53c9E3e1Wv9PcJmzKJw2flpHuSzS2KVLXRvvY4PsfvHxEchNVdXTMwTBxyepm7EzfBkKBxhcdd5wJehklPe0BXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706853533; h=Content-Type: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=vAFj9xK8iYl2K7L1Y8DNUJSyua1dAxxrWDyOxstfeWU=; b=Kht3p6/b0XSBoxGgWqcQRnmHVDgaGah45k1z1gl8ewa2fIKfrY+p0m+NLmhHYf0M52P+qo7szIi1xlxwfc4obtaBO3Vuffq6HRLudSB3Ka+nYYHnH92tyCnu+HPE+SyP540PZ00ue7JzohZtPhTTKEc/t9UAUJWBK86bvWYq+Ss= 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 1706853533328613.0941836794497; Thu, 1 Feb 2024 21:58:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVmS1-000196-B4; Fri, 02 Feb 2024 00:50:57 -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 1rVmS0-00017w-0u for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:50:56 -0500 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVmRy-0001dU-IF for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:50:55 -0500 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3bbbc6bcc78so1205110b6e.1 for ; Thu, 01 Feb 2024 21:50:53 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id h2-20020aa79f42000000b006dab0d72cd0sm715111pfr.214.2024.02.01.21.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 21:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706853053; x=1707457853; 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=vAFj9xK8iYl2K7L1Y8DNUJSyua1dAxxrWDyOxstfeWU=; b=VJk2m61Vp9CO1VTeGJGFjs0BMu41c1fLQfT7zk0XQX9/OyakPNwH/RN1/IwL32E3VO zFQlyVz95J6tdOtfZ+ogF6Wgg9613r/aas+/OVXQJvsvTngTM8M601pEFSQ7LTLzei7w Xx7n+Ugvi5BV/AmErY4WvUMbrpLQ6IAx/knW61AheoHz1nPZJfpkDsUxSkL/fQIJnIOF YkzgS5kOD20oq4Li2FYXIuhPhjAEzARYv3oFOp8FZj9PymAzmnEjOtdS9mOgLKLvg9Wp GCsGS6tDmExJ2W9QiRsXu079kt2Okrfraol685wBXvXTtbw9C+VYGNX321DjsNyZa/mY INeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706853053; x=1707457853; 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=vAFj9xK8iYl2K7L1Y8DNUJSyua1dAxxrWDyOxstfeWU=; b=uXK8tSd8/zZCR8SznAClCATlOID3+C94NBRrScHGvbSaT6cSFG5Saf81Wvy+AKB8qF SNpkA50TyUauc5pW+YV9cn0vOeR/0oQ4j9ddgLYCP2Zwkl5JmpZx2uAyibzevva8oBXr r20eY6OyyV/PjdykRGVOr90fypFiGG9EoVHv0HyIoERrojonDGTHCV1L+4Keew8hxNbe lQH4M/HEh4M3snnwanblkUsjKKw7wz9B+uvSLSauvCCEl22XM8/uJZDgvQP8lcZ2xXCW I4tiT/9mkrgYCKDQhuFptdg1k/J2viglxepu3ljZBXKt5Z3qKcSccBo2He+hHIoDW7r8 2pyA== X-Gm-Message-State: AOJu0YwCJHFDIuMQBJMSQ1uIkulJZJYz4YYks9VrqiZJ8Js44F+hyCsp WEUohOSYI42GkXXXXrDUlw7K4ASIx02arQMUIvQit4m7hPz/SGfzG6LOx/GgvJ/uVsyq3UZqPOX WSco= X-Google-Smtp-Source: AGHT+IHsf3chNcFWm0+gSeZcQCRuT75UVkB4SfmiS52SbMpSobfsimQOJkmmvxB6z2y1hKIJOcJF3Q== X-Received: by 2002:a05:6808:14d6:b0:3bf:c3bf:ffcb with SMTP id f22-20020a05680814d600b003bfc3bfffcbmr50321oiw.46.1706853053172; Thu, 01 Feb 2024 21:50:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 05/57] target/arm: Populate CPUClass.mmu_index Date: Fri, 2 Feb 2024 15:49:44 +1000 Message-Id: <20240202055036.684176-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240202055036.684176-1-richard.henderson@linaro.org> References: <20240202055036.684176-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::235; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x235.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: 1706853533804100013 Reviewed-by: Philippe Mathieu-Daud=C3=A9 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