qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Traveler <travellernmri@gmail.com>
To: qemu-devel@nongnu.org
Subject: Qemu MIPSel -- MIPS32R1 Config1 register wrong.
Date: Fri, 18 Jul 2025 17:40:51 +0800	[thread overview]
Message-ID: <169D283C-16D5-44EC-AB35-AF81DD8D8FE4@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

Hello Qemu community,

Today I used Qemu to simulate a mipssim machine, which is equipped with a 4K mipsel CPU (MIPS32R1). When I used gdb-multiarch to debug my Linux kernel, I found that the config1 register of coprocessor 0 had a bit error. Whenever the config1 register (i.e., selection 1 of the config register) is always 0, this should be different from the 31st bit of the config0 register. I flipped through the MIPS32® 4KTM Processor Core Family Software User’s Manual Revision 01.18 and found an explanation on page 98 of the manual. "This bit is hardwired to '0' to indicate the absence of the Config2 register." The value of the config1 register of the qemu virtual machine at startup is 0x9e190c8a. Obviously, the 31st bit of config1 is set to 1 by mistake.

Although this may not cause a big impact, some operating system developers *may* rely on this property of mips32 to verify whether the cpu is valid.

I'm glad to hear from you.


Best regards,
TravelerPaws

[-- Attachment #2: 截屏2025-07-18 下午5.40.40.png --]
[-- Type: image/png, Size: 216489 bytes --]

                 reply	other threads:[~2025-07-18 12:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=169D283C-16D5-44EC-AB35-AF81DD8D8FE4@gmail.com \
    --to=travellernmri@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).