From nobody Tue Nov 26 18:27:14 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=1706571204; cv=none; d=zohomail.com; s=zohoarc; b=OKTKolj6BExit3FpD5RN6A6C4fobbtDA05gCfujISIXa3bqOp8q1fER27w/r1Qq8F/B5gVTClv4fW0ccSEcdHvVf8EYUO7M9G9kFetI83qKljI46yoYmUqdmZBAAkfJRMfRC2SEYANge+J3UZTKamATwv6EhozW50RDEDAgWC/o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706571204; 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=2DGeNqrAocEQBW3s9u83YvGPr3pag37tdDcMnd/na+Q=; b=CkWtNWERfAayBP4ISdtxe4YIumoFvlANUtlQo4yDygyySv3OqSxPsXX/U3QlQZrOJamV64aBcKLnWPhTmweo1ftqxvl7O8aJ9c7sQRRUQ4vctcnoqmhcuipuNi6TI4zAs9+coDuKtCtrEh9aKN/H8u1i+F8VqAxQm78sptmhpug= 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 1706571204878754.173044149489; Mon, 29 Jan 2024 15:33:24 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUb65-0005cR-Al; Mon, 29 Jan 2024 18:31:25 -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 1rUb5p-0005Sl-Gp for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:17 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUb5o-00051w-0y for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:09 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1d74045c463so17491895ad.3 for ; Mon, 29 Jan 2024 15:31:07 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id l6-20020a170902eb0600b001d8dbb867b1sm2710591plb.179.2024.01.29.15.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706571066; x=1707175866; 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=2DGeNqrAocEQBW3s9u83YvGPr3pag37tdDcMnd/na+Q=; b=UA6D7EO5jXR4QP8vGpycYMlJv+UYl4IzVMN2HB7ELXtmiaTtlTaOnJP+G0WPGOoqSo n/igXfzq2ZhxTL7toyVwIyTfQ9WxTGUvB05OiSHmVv9KDgTMQjrhQqflt9PlfOt8HgnI +pS5vlISP9ufDjQhFOv7PgrH38keO8H2GUrUJ7zNjI/gs99HXPKMEoUNsQGzT6cHFqZY O/VW2HoO892bufSVOzkxVxah+3CB25Em/0hMYsaJgoblyWUdWj0Qy4WrEqPbkjKqnGx6 /JMrqzPo1qjj8rLRcReCGzbpoEBRLgUfiso8Sl6LDu7RqzIqtCBwrNPsrkF2h7TLQoTR iO+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706571066; x=1707175866; 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=2DGeNqrAocEQBW3s9u83YvGPr3pag37tdDcMnd/na+Q=; b=XWQTtrfY790ZywybrRUwB4LHwSTeaFUiLJmhhLfUxio8NEg5g+Ge/Ua4fR2Wo/l55b lvvO6V2wXUI8DpnTcPLW4I89Rf2HLwbAIa7Y0NU68p06RXWwYcmbf6PjtHvuBnCr0dLO MavIguTDsT9CIkTUsdexWQw/PudgNlhSY7j4HKK9KzpKEZP3ZdIMTy1XMeRG54zr5fTh 6jL7F+baLniAqAjz5Y28OlXOCkUpiOxY9WrEqVnvrPCzQYFOREech1aZBmL07LRO+/4T 59n8U8ba4KMRssWEKo1KIaU1LfW3c8MN+lkJLpcVK8ECDC2PFnDDmHK3xu/WUL8qJnCI Ww6A== X-Gm-Message-State: AOJu0Yx6+LZs1bscl6ZUIQ76vYtQcp8i1JekiEmymiJTSjPvwKrs3QfE vUvAMyr4ApLPV65nTEFL54/+03H2DFmsWnGaK/gTcNCI+napzQ/6soasuO/qLYVLHsDR2QxG9rf 5ZuM= X-Google-Smtp-Source: AGHT+IFolqqLKjKl90ShxfQPNRzkcgQF4TVKPn9szr+T7VPCdxTLmobQvXlJggZHWjne/7HzwAYrEA== X-Received: by 2002:a17:902:e548:b0:1d4:4467:97dc with SMTP id n8-20020a170902e54800b001d4446797dcmr4328746plf.6.1706571066295; Mon, 29 Jan 2024 15:31:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, anjo@rev.ng Subject: [PATCH 08/33] target/cris: Populate CPUClass.mmu_index Date: Tue, 30 Jan 2024 09:30:18 +1000 Message-Id: <20240129233043.34558-9-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::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: 1706571205786100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/cris/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/cris/cpu.c b/target/cris/cpu.c index 6349148b65..163fb05d58 100644 --- a/target/cris/cpu.c +++ b/target/cris/cpu.c @@ -56,6 +56,11 @@ static bool cris_cpu_has_work(CPUState *cs) return cs->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI= ); } =20 +static int cris_cpu_mmu_index(CPUState *cs, bool ifetch) +{ + return !!(cpu_env(cs)->pregs[PR_CCS] & U_FLAG); +} + static void cris_cpu_reset_hold(Object *obj) { CPUState *s =3D CPU(obj); @@ -274,6 +279,7 @@ static void cris_cpu_class_init(ObjectClass *oc, void *= data) =20 cc->class_by_name =3D cris_cpu_class_by_name; cc->has_work =3D cris_cpu_has_work; + cc->mmu_index =3D cris_cpu_mmu_index; cc->dump_state =3D cris_cpu_dump_state; cc->set_pc =3D cris_cpu_set_pc; cc->get_pc =3D cris_cpu_get_pc; --=20 2.34.1