From patchwork Mon Jan 29 23:30:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 767488 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1127914wro; Mon, 29 Jan 2024 15:39:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtWi1/Yla6GRQ1ecRt6oS03caPBKTeO9ibRowLTsm+9cpA9EU3mE1tIZuu+PWoQT6zRl9S X-Received: by 2002:a05:622a:94:b0:42a:a828:f276 with SMTP id o20-20020a05622a009400b0042aa828f276mr3068758qtw.29.1706571582618; Mon, 29 Jan 2024 15:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706571582; cv=none; d=google.com; s=arc-20160816; b=eL1uCTtOZnZTnNLQqL6H0YWT14Yyp37IMSjXVhOJ/7REnxU3X7CGJL3t3jgHR2YJ3f SjxG5ePfR7ZX9l8EGTzAjsaxqkJAG/oeXngMiDiRvLMg4T1qOKXbB+pOOCCTZj7zSm38 3fgv/M+ecWEKmb1KZe7osq6WBnIO23qmgJWOxVYDnnNeu9IO1vQHuZJGJ6+vVwK4h4cY U+GJueIyb0vDeQ0/khU85MvHmCscwaAKP50XVCW8CFtWZHFIwZHYqhbfVBVEfz6amPKB m6YdOxmx+VGRKkbryj2UCDRnNQDFf5K/mRe0DG5rcl1RNDMwuyH1FHGsBzHp7p379h2u SqUg== 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=7ZadEiersJPkOM/pXyufttHg+GMQ5Zo4Kp1sJsHlj50=; fh=d3q967Ss27yOZEBNWb7WV1pwIIYORDjfLhLmomzC17w=; b=VBowvB0ZlWrzRWPMJqbhJMPaRseD+wHdLsl8cLHzltKEt5kHBUCqzfCE0bD0aokWy7 dAmVuUCIuS1SXpEboba2dcKS6rRN4o9kxYDqwxWFMGOqym6pi9TFvIVUy1Lvp71E+jAv U8mQJiE070XRzoqdnWEwBrt6Ucg93eR0cLvZoj3lJPL94Ge3A50cGn4ScvEZEhjnDTVc WRY+xtPWkw+qApB/OKxiqb3Y0vTT3IlmS+X3wkmgPbHvINa2qIAnxdGwUvXyKRqymFde DRpU9mLiNTvhyBDgGNA74kve4KRiPZs0YsaaCJpbEHvz/iFSo16wuQYLZVHs3HzDR4j4 Fxzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lqixDMYr; 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 x20-20020ac85f14000000b0042a1f94fe38si8914655qta.268.2024.01.29.15.39.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2024 15:39:42 -0800 (PST) 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=lqixDMYr; 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 1rUb6a-00061C-Ez; Mon, 29 Jan 2024 18:31:56 -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 1rUb6R-0005xs-Vb for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:49 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUb6Q-00059u-F4 for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:31:47 -0500 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d71cb97937so17976645ad.3 for ; Mon, 29 Jan 2024 15:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706571105; x=1707175905; 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=7ZadEiersJPkOM/pXyufttHg+GMQ5Zo4Kp1sJsHlj50=; b=lqixDMYru1Q1JB1oX94IwKsxhnNiEG2JYlkP2obpahsxsl1TaC3tbP2UyyAdEVcRby H/WxmzSIFWtBaRAFrm61Y/fhgoCUAgRECAtTPuKCrZL+F/HRCkaDnoWZvKshVthm+fTK Q7LMWB05Ql+OIFVB2OA9DouJ2QL+8m3hmUwA5XU49LINMNbl6pYI1Eb+0TmzwZlmg6ZU 6PSrg3k/a6J0OuztvWGubnryt5+uLJ0WR7TThb4i0WNZNZ2mXBWtGr1pcyzOSddHj2JF q9igrBSzn6fHJeSaUqCzTar69WiZijczi4/sbZxeLSnH+rrjNhn597fde87tu/jQRb7K fZhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706571105; x=1707175905; 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=7ZadEiersJPkOM/pXyufttHg+GMQ5Zo4Kp1sJsHlj50=; b=pX4KwLx2SQRhmEBjsYjjf5Q38So8y6VnI797IVx2Z37zobjCUCRdBM1z/J65NRcqJM zRQ+4IEQugB3AOSEZ7NPeh693aAP3fV86gezD3TC6cp2wI+ZeL7e4ZJxGMkXRhFqeLlH HfwK4yIMoTBIi9IOdPmNeQhH1ycGp8P+MII+o1TPydK2RqF8w2FrNLBTnL4hT1k2B70K rnq1S3mDttaqHCMczqr89kf9SkvsuhRXr7Pm2RqXX5aAXWFgVl6Bqp3PiokLy2dacyUD /+azrW1awMkpR7nVhB/EXrYP1N+cF0yfAtMHNE/YyC/WFHSIbe/8+XbqBW05OK8zhmmQ F3EA== X-Gm-Message-State: AOJu0YzuGR+q+8hAhLfEQdA4AgIBYQ/2GDAOCl4stTZRlbss4HeDqTpt +Ol3mZB8L22p0/4vMrWKZAnOgXjcTW77QERR5xQY7mU30+8qMi3ZgXDqkYYqg39z/LdLWx8NYEF aE5s= X-Received: by 2002:a17:902:784b:b0:1d8:d73b:794f with SMTP id e11-20020a170902784b00b001d8d73b794fmr2219171pln.56.1706571105258; Mon, 29 Jan 2024 15:31:45 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id l6-20020a170902eb0600b001d8dbb867b1sm2710591plb.179.2024.01.29.15.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:31:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, anjo@rev.ng Subject: [PATCH 25/33] target/rx: Populate CPUClass.mmu_index Date: Tue, 30 Jan 2024 09:30:35 +1000 Message-Id: <20240129233043.34558-26-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- target/rx/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 353132dac2..5205167da1 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -64,6 +64,11 @@ static bool rx_cpu_has_work(CPUState *cs) (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR); } +static int riscv_cpu_mmu_index(CPUState *cs, bool ifunc) +{ + return 0; +} + static void rx_cpu_reset_hold(Object *obj) { RXCPU *cpu = RX_CPU(obj); @@ -204,6 +209,7 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data) cc->class_by_name = rx_cpu_class_by_name; cc->has_work = rx_cpu_has_work; + cc->mmu_index = riscv_cpu_mmu_index; cc->dump_state = rx_cpu_dump_state; cc->set_pc = rx_cpu_set_pc; cc->get_pc = rx_cpu_get_pc;