From patchwork Thu Apr 24 00:48:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 883889 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp3207699wrs; Wed, 23 Apr 2025 18:23:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWTXcqY7a49ttZ1QH/HaK9oJbQretCBBgbFuArltrKyzhFA8er/B2OjiOr+LUhYI/5ZCrDShw==@linaro.org X-Google-Smtp-Source: AGHT+IEuzXbXwTgd7T6TfFblHfY1DjaKOVhgCBXHr2wnA57N+K9HF82pR9sVvyDj63ahKghBh00t X-Received: by 2002:a05:620a:2a0d:b0:7c5:5768:409f with SMTP id af79cd13be357-7c956f4ed7amr143572585a.57.1745457810915; Wed, 23 Apr 2025 18:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745457810; cv=none; d=google.com; s=arc-20240605; b=NWHsgUBM2nISgGThIPBtdO3gKPnECYsZyZ2Wb3gZ3rXYNZc4niz9ili4v+S6xbn9bg JDH9l/GAOFemKpbGnFBVt1Ho5W95kED7UdHJ/arDeMwBgIMaiI7yKi9GSqI1iBz1QglM JoQo1h3vqid8/1AxRZqSfTq1WbYedFwcktzyD37oMj5Tar7E/t8J5QwQljKnwU62cQCv mLLhW9kJge/P34MMazSDUGtScS2eh5e1lfQkH14Jr5a1hOAwZ0N631WBGmZDauIMk4wa U7V7LVVC1pHgD+rxjCKUcZNOpf7UGxt4xaem8WdXzUzmXS0jWEjxa1YUeSlM/UkbFI2Z uM2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=s+vJSXjRAVXeTwmKub0ZXgQhIZDI7tyX9VxiyklcrIY=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=LCMlQ3NjDe2wdlWIPc3mliQHRNybJccRGyITbNrGCzEuSjYeIRP7bHxtJgtwqgjlsR 6woeld7p32iLaYa0X7Pb0WDF9pdHEWprX97L6EqYUXv2D3tEgwtSyZP7GJuUQH3WUDcB Qd81SsYqHnTAHniF908XYA1hIgKcEsxLBLFj8VLmfm6yDhig3kWCoQa7xmc97OKuQFIZ EvzGxYbyUm6KReMd8zmkka329AV7TIqGRpyKvLCMoRz9RWuuHRQjd7PDKOLisOCWXq0E Wr3mqJ85gM00AW1xGmnzgLztKS59Jelotlck6BeObTMkbmivQvWC7p3C/xOX3JJy9jFc pPFA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fULYQO/p"; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c958ea0a89si24357585a.333.2025.04.23.18.23.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Apr 2025 18:23:30 -0700 (PDT) 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="fULYQO/p"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u7ktg-0005v8-5p; Wed, 23 Apr 2025 20:57:02 -0400 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 1u7ktM-0005du-Q6 for qemu-devel@nongnu.org; Wed, 23 Apr 2025 20:56:41 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u7ktJ-00053u-B8 for qemu-devel@nongnu.org; Wed, 23 Apr 2025 20:56:40 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-736b0c68092so333572b3a.0 for ; Wed, 23 Apr 2025 17:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745456195; x=1746060995; 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=s+vJSXjRAVXeTwmKub0ZXgQhIZDI7tyX9VxiyklcrIY=; b=fULYQO/pU+Tg4jDS/zih4ACm+yLtWO5zut5qJlD/k02oA4pCxtLoaYMkLwxly124zC Jw7eRaox1ewXljDdaKi0l8EJs1IkLo18xuR6Qf3Gf/o17udXOmhlvawU3u961vt+mukZ hOS8uHnlQICQaiXPvY4yBB+k7HiKptjfdopapM8TT+g4SYzzgmQ/IWXNIn+zUtWMtDnw /6k62f1knDJdVfLlqIC1QxQdEuJMhDvihEn+TaCKDYzXNWsqaP8oCagqgTiyC52NCJP7 cChozm4tGUBjGF2fFpfs9YDPI+RQFeu3As2oOOtaYDxiwi5FKdiu5VRzQYk5EFgA+Qhp Q/jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745456195; x=1746060995; 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=s+vJSXjRAVXeTwmKub0ZXgQhIZDI7tyX9VxiyklcrIY=; b=TUOdckQ9shXWucqDyGKoZpDRr2mAtnutGntGDy5l7Uc/GHUYOchIpwDVayxMFQavVd ahubUfe/kSvIQzCIsi2KxEel/eu5JUoHbztiWzp4o/kqyeOZGsfXFA062bQbeq7pwv8U KBLMmstHjMLl/uMZR+JXYs/iGH6jc3FnkXkvG5UGCNY6lebGaKKMatBimV3OxcnEy2tU Rj9ISyct3a3m2z5l7ZVt5g+mQk0wtLAuQQPCt5nTELQFAznYde5I45vzr9zeGom4mLE4 aDv/ruReo/MeeiJA3LLBkT9h8WQ/nFAl4VGNrtuYf5jDwlvw1TZIuNaQ74bh8iSUzgPw +Jqg== X-Gm-Message-State: AOJu0Yw0lXiIEOlPuM5DWZJbWUV4XWp3KTHbjuprxWaeDYmfrmXLTHsr 0BN8fJsVsZdeFfhyGpEUszMhhxrlHfiTKmqicMlD2gBgdyGv9wQIu9bd/63w1NGRzqLjPQ4Ifvz 2 X-Gm-Gg: ASbGnct6AXLtyEKqRnFNWYTLafndxMzCGIgBFgpcS/RdEqrG6TVQIQoQS6j7THxb9YC lXC7uJ5yws5/zzQlgR9wTDDAdzU/C/xOyU2bNzzb9c/q82qeBsl3LW8qX06vRpFZqjTu3LShtv8 eiCtElOfmmIBxmrW4LvjTn0EdIuiAmRONSI4aUFz4Ut3ZchIEuNgnf/mQciON5xWIgtPk3/nSZZ MbgfWD9plW+H/F1Q8XuFLY6+LYgo4/n8WN8Ardeif3XMtZsUKPKRZGRHC/GcmW/7xTwf8APnTRr OjANp92hQQHXSSFhLdLN9Q8JXJEOBNh9D5H7aFkZd4v82rd3yQP0ThJLcaebq9PajV9Gw59lUUg = X-Received: by 2002:a05:6a20:7493:b0:1fe:9537:84a0 with SMTP id adf61e73a8af0-20444e9b3f1mr931958637.15.1745456195354; Wed, 23 Apr 2025 17:56:35 -0700 (PDT) Received: from stoup.. (71-212-47-143.tukw.qwest.net. [71.212.47.143]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b15fa907fcdsm119775a12.54.2025.04.23.17.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Apr 2025 17:56:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 081/148] target/loongarch: Restrict SoftMMU mmu_index() to TCG Date: Wed, 23 Apr 2025 17:48:26 -0700 Message-ID: <20250424004934.598783-82-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250424004934.598783-1-richard.henderson@linaro.org> References: <20250424004934.598783-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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 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 From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson Message-ID: <20250401080938.32278-11-philmd@linaro.org> --- target/loongarch/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index ea1665e270..cb96b17911 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -868,6 +868,7 @@ static const TCGCPUOps loongarch_tcg_ops = { .translate_code = loongarch_translate_code, .synchronize_from_tb = loongarch_cpu_synchronize_from_tb, .restore_state_to_opc = loongarch_restore_state_to_opc, + .mmu_index = loongarch_cpu_mmu_index, #ifndef CONFIG_USER_ONLY .tlb_fill = loongarch_cpu_tlb_fill, @@ -919,7 +920,6 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data) &lacc->parent_phases); cc->class_by_name = loongarch_cpu_class_by_name; - cc->mmu_index = loongarch_cpu_mmu_index; cc->dump_state = loongarch_cpu_dump_state; cc->set_pc = loongarch_cpu_set_pc; cc->get_pc = loongarch_cpu_get_pc;