From patchwork Fri Feb 2 05:50:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 769157 Delivered-To: patch@linaro.org Received: by 2002:adf:9bca:0:b0:33a:e5bd:fedd with SMTP id e10csp754625wrc; Thu, 1 Feb 2024 21:56:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVSJTQnwuibOsY/TeFcaqOzPlNfEU4/wbr8GyF/20xDa0+VgJ+y/sFW3FALgXGin5GBjxd X-Received: by 2002:a05:620a:55a1:b0:783:f683:e28b with SMTP id vr1-20020a05620a55a100b00783f683e28bmr1564880qkn.34.1706853366354; Thu, 01 Feb 2024 21:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706853366; cv=none; d=google.com; s=arc-20160816; b=h5UaaK+WF4ETwUe4j1SZWq3aoN9uPzdF3I1bxB8i08NXIzUOJKq2XU7A8C6bI1hDlV 66DGlJq/5Uai1V8X8a3bKwEo+FVRfOkLJWfZjrNooReanfKuKaofn3oeT5I9Q8JqnxMP XiqQvZKUxSED+VPa5IkLw+MfPovT6B1xq52FArcd0+QCQQKXSEdvNiEEei2E7Wws30PQ HwEAkEMFU8Yk6nTc0f1MGTQMzOO9M9oL5q8YQ46XebNdDhEoVbA+ng/nQAZldbENLRJi dyir4Z6i2sM6tfLzGLcTb3+KI8QZMoC2kPsamEYO14/EY4raLiQjphneZKo6zhAnovuG T6Bw== 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=6HOOME8FRq7OakS6NFzHSp/K+z8pT26NgXnqvXCF5X4=; fh=N7d/+gE8Au0AVRiR/WoCmR6gOQnZjYksTTqBcnkOerA=; b=bvoCRN77z3pEZ+ICcnsem1zlnUNTAjYoe4d/8clWf05iAa5PswpGCbjOEDdArZ0bG3 Khu/YIcyaiWuQOd955X6Qgz+4TEjxKNyUQLaA5tUQQTBCyMqc9eqlRlqCNtWq1CFNbZ0 uOAibv60rP2jR2Kv55GZPz1/AJAf7Z+gtDQohVF5NVKSPOadtDKm4fE2L0WIaJgOxTHD agEDFOoNgZsAlizDgW/LGcNelqjiPV/bYR5IU/E77KbqotAIXEtlcBDeYbB/yzTHzBXb hzsIIWNvqGWzDJvzTS583A3jTtB4Y4FgMLh5ojHt9lOnXhLRymB1ghEKQp95+tWoM4l9 cDVw==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xGaPjMB0; 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 X-Forwarded-Encrypted: i=0; AJvYcCWiUBmvVo9UNEIEskzk8oBx02WghcvWD+eXILVt7/lK0oQ94M5E7HHmHi8PINiQyNZiD6GN72aheyTgYP6wmEri Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p13-20020a05620a112d00b00783a280dd83si1209760qkk.592.2024.02.01.21.56.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Feb 2024 21:56:06 -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=xGaPjMB0; 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 1rVmSt-0001jf-0m; Fri, 02 Feb 2024 00:51:51 -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 1rVmSq-0001aO-HJ for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:51:48 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVmSl-0001wQ-Hj for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:51:48 -0500 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3bbc649c275so1029806b6e.0 for ; Thu, 01 Feb 2024 21:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706853096; x=1707457896; 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=6HOOME8FRq7OakS6NFzHSp/K+z8pT26NgXnqvXCF5X4=; b=xGaPjMB0vH3QIjG8gvOb2+w06JM+/JgcPSjh0JEROYAB7c2wAc0xJlV6I9YCuv1k5z gGhOq3WOj+ekoaF3RA1bNPC0vV3JI3ldoEpQ+/np7KTpU+huEoEwnKNazAhg0Am70Mmd 9GPKlhe6uRmWmVYXBn36doE0nm5kEz+D+TkusN+tlhXQQrU3s/RgH1uLRBlBBzstyDFS 2lEc3EFbYN4rxwym6rAPUd32N5MiGYOjjALfPUfp/G4duL1tiH38KW+yPco5yEcRK7Ux Kg+tZQffoKL8yJo0bS92LDOeIJftn69i9JzLW77ZooTyn4NsqKjY73cijkTzCXqvJfxF 3NMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706853096; x=1707457896; 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=6HOOME8FRq7OakS6NFzHSp/K+z8pT26NgXnqvXCF5X4=; b=uyXAcWR8+sqtO63iSfn8BqbXz/JMfZPos2HR/h1EyUi92Fx4UFSGfHbiPyYk7JXJh+ X9tseg+dMY3R/tJ0gsSYLx2b7IEN2vA11oOF6kd8t8WeSS4jSeLco01IEcHZXuwpAkM3 xIl2F1Hk+1PoQxZLTGHFNDrf34Q0cfJPurC/tXcChnl7wqKiocHXEhisc5hic5HIOXds jAzJSO66wW8Cn/qcImC3u8Lzvk/DhVLSl14W5r2nqAxK+xJha5n9NmpESQbsEylqLL6I hIQ6ZvII6mBKUqSRnlXEswzmfKZ/cGfEAmJOaWiS+7JxK3DTe8mzwDNAv08FgbBPnIt+ Q0/A== X-Gm-Message-State: AOJu0YzEj8fVMmUiefjwZRYuNKN50P0DpxpR9R0Nk6W9NeKUIMoxRWOj rroN7+nBH+UqOTXY/gRyn+o9Nswds7NQPxxgEGLMYyEKKyZSyyHU6Ffqm9YWduqKt1XoEP+4jee WmuI= X-Received: by 2002:a05:6808:3990:b0:3bf:bbda:9db9 with SMTP id gq16-20020a056808399000b003bfbbda9db9mr2051606oib.15.1706853095816; Thu, 01 Feb 2024 21:51:35 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id h2-20020aa79f42000000b006dab0d72cd0sm715111pfr.214.2024.02.01.21.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 21:51:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 25/57] target/rx: Populate CPUClass.mmu_index Date: Fri, 2 Feb 2024 15:50:04 +1000 Message-Id: <20240202055036.684176-27-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x233.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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 Reviewed-by: Philippe Mathieu-Daudé 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;