From nobody Mon Feb 9 20:10:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) client-ip=209.85.128.65; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f65.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1606829309; cv=none; d=zohomail.com; s=zohoarc; b=Dcc3gqWBn1lnG5wFlZ7V7wlTeU5r7YkFih2esaI7Oqg90r1189BFdZvVK6fHK1PfNFdCoM8QUCyH7K8zZbgfEDNr8L9eIT+ATIRYf3iEOJ2w+QUAVoe7S58zQVceLBDbuRlcHGswIsaZ36FsXk8RabwOxtA8kWNoXn6c0H5+DNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606829309; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=SkU0x0PsOvuU2zhH0806drjS01R88qBbsS1X8IGmXd4=; b=mpVsxT5vhIiD03SfqeZrwFTSGMPwdlY3ybmYofAOct1zArCbXWJRi6r12jT94ep2LKjcCtbPgWChkRrLpfuKOjHocnZ6SSiM6nOi8xhv2ZZUXQJUfPHGYh3is2fdaJb2hE3qLIN05JkkOyYJt6LnZfAC6Nl7yz3g9IoDepLio9M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.zohomail.com with SMTPS id 1606829309316927.8764597380374; Tue, 1 Dec 2020 05:28:29 -0800 (PST) Received: by mail-wm1-f65.google.com with SMTP id a3so4920307wmb.5 for ; Tue, 01 Dec 2020 05:28:26 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (111.red-88-21-205.staticip.rima-tde.net. [88.21.205.111]) by smtp.gmail.com with ESMTPSA id x9sm3175063wru.55.2020.12.01.05.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:28:24 -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=SkU0x0PsOvuU2zhH0806drjS01R88qBbsS1X8IGmXd4=; b=LA/X9If1cVCFCMwkEgLppzUp/9UfevjG15I5JF7eCdbqqDE9PEumaHLJv89aznyfYk hoRR4feHL18uRP5ypbRZjAqhm/MqKuZRH93kFEaQtTw0+STl0pEXz0MdbtZ32HKnGML6 zp8I9zWKKLoMYUJVDRehIKnJTTHxi86R6AMYAnOeiuPcYlmHaOnimXvs+rDyHoaJ8lfb fxB4S1kteycO97KharTTvReKrgq45dXsS6MphjGsWfHcE1GEFmtcU83jg3KBckzWO/eg I5sFNIDn+/oTlI1crmlD1bXW0GsOsWiw1UVRVwJjePy2cOxZry5gSTLUi/67miNlOZkU 3KFA== 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=SkU0x0PsOvuU2zhH0806drjS01R88qBbsS1X8IGmXd4=; b=XcasyBlTAFBvu9jlqZN9PR00Vr2JJ0yYXZPXSUrx4wtVpieKczZ9Ss/YaTtYKuGJM9 cMhAKGH6xCY7KlsYROKsAZSEEczV2oHGg7zGzBp99DnffvX47/oRiL9RzyD7lLMjJH7C OOcVQDvjpr0i/dazOtTYI4tPrLl0WLhxd/ozfMujx7WcJQgE9Wwe7HybqUDJcKm8nTtA s49pxWH2tFgT8Q3rNEu+OO3+SJA4kiH8Rn2MEYyYv70hCXoSgxpk7Rd/hgw6aOm1mC9o rSQKqbjbhRNlIFLu0SUDWASJJVtX9h6bditDlbv5oQPN7woJhGXmlOmxXfzhhx04SN4C nYdg== X-Gm-Message-State: AOAM532BspIardESeGg/uxCWQWWq2C/lN2xWIcSBtJasb4SOhD2UF+Y2 7w08XXujPxn7Qd/wpNIWh8nNZAatigQ= X-Google-Smtp-Source: ABdhPJzMH4QBH1zWvlegMx2xfQw27rH86wcqPxfO889BQy68vSQ6O5s6Z+7EeQeb/TDoUFoZF+fgCQ== X-Received: by 2002:a05:600c:2188:: with SMTP id e8mr1846926wme.99.1606829305464; Tue, 01 Dec 2020 05:28:25 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Huacai Chen , qemu-devel@nongnu.org, Jiaxun Yang Cc: Aleksandar Rikalo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Aurelien Jarno Subject: [PATCH 1/3] target/mips: Add CP0 Config0 register definitions for MIPS3 ISA Date: Tue, 1 Dec 2020 14:28:15 +0100 Message-Id: <20201201132817.2863301-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201201132817.2863301-1-f4bug@amsat.org> References: <20201201132817.2863301-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) The MIPS3 and MIPS32/64 ISA use different definitions for the CP0 Config0 register. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/cpu.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 23f8c6f96cd..05291cee4db 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -828,7 +828,7 @@ struct CPUMIPSState { #define CP0EBase_WG 11 target_ulong CP0_CMGCRBase; /* - * CP0 Register 16 + * CP0 Register 16 (after Release 1) */ int32_t CP0_Config0; #define CP0C0_M 31 @@ -837,13 +837,20 @@ struct CPUMIPSState { #define CP0C0_MDU 20 #define CP0C0_MM 18 #define CP0C0_BM 16 -#define CP0C0_Impl 16 /* 24..16 */ #define CP0C0_BE 15 #define CP0C0_AT 13 /* 14..13 */ #define CP0C0_AR 10 /* 12..10 */ #define CP0C0_MT 7 /* 9..7 */ #define CP0C0_VI 3 #define CP0C0_K0 0 /* 2..0 */ +/* + * CP0 Register 16 (before Release 1) + */ +#define CP0C0_Impl 16 /* 24..16 */ +#define CP0C0_IC 9 /* 11..9 */ +#define CP0C0_DC 6 /* 8..6 */ +#define CP0C0_IB 5 +#define CP0C0_DB 4 int32_t CP0_Config1; #define CP0C1_M 31 #define CP0C1_MMU 25 /* 30..25 */ --=20 2.26.2