From patchwork Sun Dec 13 20:19:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11971011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03FFBC2BB48 for ; Sun, 13 Dec 2020 20:21:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D49FF2396F for ; Sun, 13 Dec 2020 20:21:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393086AbgLMUVV (ORCPT ); Sun, 13 Dec 2020 15:21:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392882AbgLMUVV (ORCPT ); Sun, 13 Dec 2020 15:21:21 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9B5DC0613D3 for ; Sun, 13 Dec 2020 12:20:39 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id x22so11943543wmc.5 for ; Sun, 13 Dec 2020 12:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UKVyHTJcfnmphpZOlFQ3sK0TO5i59SQTbNG7ZpwIL2s=; b=Q2ksS/NIJwRo6OVacRh1D3+KqjRnj3fQkjk+RFruSjRTqsxfiGyG+2kd+xqRaPSyNn Og8GyaYIUtXhBQX+ZW1nfYS1ilo/N/MXh94szzfdIv4dta73ui2OpQFnEmnU3t/r+teV Tka2QbqFNDF+03VruDSDXm2EDY0TDxtdzQcGizbC803leH6tL1MOB8fNUmFcmB7n+bV4 N8yARhMJkKFDmnjPEv7kVWv0GVMvQAhDMqIa45YAM3Bwo7t5En2DVylczCrwAzDEA5Xl sIg9lVvazuHl6l7sJEEFsd8GbAJt4sB2QIEPGG9ZKAcN5ikpBAIkwDEfNdY7XCyoOr7v +I3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=UKVyHTJcfnmphpZOlFQ3sK0TO5i59SQTbNG7ZpwIL2s=; b=okxy7xnTGMlSIH+V/hL2qAL4wOw4+Ig8M8dQY7b+0ndsroXzhBCx98G83xNnzYsiDX wr7xsXyWrCMgt+xpmE4RZ5bmpTVXuvSmLjxiy7vfavjzFpyvfhNi6K1QSXcTpEwjgMNO hS8TteCAa7+oBBA12hEweWAR9MgHli/aCKHskgojCFEcb5GWlakHHpLHNiPzVv6hu6h8 /KLi2z6O9k+0RH0aE26BTP5rZa1np8fFNnnKZTUA4Id/tjP4pOylgW8/7uhwyS/1iRwL NMkap3O6kVFfXG0JLeYDaboneJLKBJhX/AtNP32bufyv/R624zGK/XNT7pyXYzzpmfvq dpxg== X-Gm-Message-State: AOAM530fxQxFEW7AWSu4p7vLykUCeovtPb88P2abShixhVbxH0+ipkJX bXY98TQh6zY1C6XTPTq9Ko8= X-Google-Smtp-Source: ABdhPJzgoE2qp8c/gtBc5k0f18CqNg5PxnMO3ehBmX6yeySByMtolXCKZoaCC8qZNyu+dyEmkIbmeA== X-Received: by 2002:a7b:c773:: with SMTP id x19mr23833930wmk.127.1607890838712; Sun, 13 Dec 2020 12:20:38 -0800 (PST) Received: from localhost.localdomain (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id r20sm28985853wrg.66.2020.12.13.12.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 12:20:38 -0800 (PST) Sender: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Aurelien Jarno , Aleksandar Rikalo , kvm@vger.kernel.org, Jiaxun Yang , Huacai Chen , Paul Burton , Richard Henderson Subject: [PULL 10/26] target/mips: Explicit Release 6 MMU types Date: Sun, 13 Dec 2020 21:19:30 +0100 Message-Id: <20201213201946.236123-11-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201213201946.236123-1-f4bug@amsat.org> References: <20201213201946.236123-1-f4bug@amsat.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org As of Release 6, MMU type 4 is assigned to "Dual Variable-Page-Size and Fixed-Page-Size TLBs" and type 2 to "Block Address Translation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201201132817.2863301-4-f4bug@amsat.org> --- target/mips/internal.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/target/mips/internal.h b/target/mips/internal.h index 76b7a85cbb3..bcd3d857ab6 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -16,10 +16,11 @@ * CP0C0_MT field. */ enum mips_mmu_types { - MMU_TYPE_NONE, - MMU_TYPE_R4000, - MMU_TYPE_RESERVED, - MMU_TYPE_FMT, + MMU_TYPE_NONE = 0, + MMU_TYPE_R4000 = 1, /* Standard TLB */ + MMU_TYPE_BAT = 2, /* Block Address Translation */ + MMU_TYPE_FMT = 3, /* Fixed Mapping */ + MMU_TYPE_DVF = 4, /* Dual VTLB and FTLB */ MMU_TYPE_R3000, MMU_TYPE_R6000, MMU_TYPE_R8000