From: Peter Maydell <peter.maydell@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>,
Huacai Chen <chenhc@lemote.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [PATCH-for-5.2] target/mips: Report unimplemented cache() operations
Date: Thu, 6 Aug 2020 21:51:27 +0100 [thread overview]
Message-ID: <CAFEAcA8iXXW=eD+w-UdPqdjtbfc45Qu+DyfZBmaVe0TgMt_jmg@mail.gmail.com> (raw)
In-Reply-To: <ec0ff553-a5e7-6c93-5ab3-093721b044a6@amsat.org>
On Thu, 6 Aug 2020 at 21:31, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> On 8/6/20 8:01 PM, Jiaxun Yang wrote:
> > 在 2020/8/6 下午8:26, Philippe Mathieu-Daudé 写道:
> >> We only implement the Index[Store/Load]Tag from the 'cache' opcode.
> >> Instead of ignoring the other cache operations, report them as
> >> unimplemented.
> >
> > Hmm, I don't think we have anything to do with Invalidate/Writeback etc.
> > opcodes
> > in QEMU. Why do we log this?
>
> I'm noticed this code is run on Linux 3.3.8 (4KEc):
>
> 8880: 3082000f andi v0,a0,0xf
> 8884: 10800008 beqz a0,88a8
> 8888: 00a21021 addu v0,a1,v0
> 888c: 08002227 j 889c
> 8890: 00001821 move v1,zero
> 8894: bcf90000 cache 0x19,0(a3)
> 8898: 24630010 addiu v1,v1,16
> 889c: 0062302b sltu a2,v1,v0
> 88a0: 14c0fffc bnez a2,8894
> 88a4: 00833821 addu a3,a0,v1
> 88a8: 03e00008 jr ra
> 88ac: 00000000 nop
>
> Why silently ignore the opcode is not implemented instead of logging it?
I think the question is whether the opcode is supposed to have
some behaviour which we're not implementing, or whether "no-op"
is the correct behaviour for it (which it usually is for
cache invalidate type operations; compare the way the Arm
cache ops like IC_IALLU are just ARM_CP_NOP ops).
thanks
-- PMM
next prev parent reply other threads:[~2020-08-06 20:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-06 12:26 [PATCH-for-5.2] target/mips: Report unimplemented cache() operations Philippe Mathieu-Daudé
2020-08-06 18:01 ` Jiaxun Yang
2020-08-06 20:11 ` Philippe Mathieu-Daudé
2020-08-06 20:51 ` Peter Maydell [this message]
2020-08-06 21:37 ` Philippe Mathieu-Daudé
2020-08-10 17:21 ` Philippe Mathieu-Daudé
2020-08-13 10:58 ` Jiaxun Yang
2020-08-13 15:23 ` Jiaxun Yang
2020-08-13 17:59 ` Philippe Mathieu-Daudé
2020-08-07 7:57 ` Jiaxun Yang
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='CAFEAcA8iXXW=eD+w-UdPqdjtbfc45Qu+DyfZBmaVe0TgMt_jmg@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=aleksandar.qemu.devel@gmail.com \
--cc=aleksandar.rikalo@syrmia.com \
--cc=aurelien@aurel32.net \
--cc=chenhc@lemote.com \
--cc=f4bug@amsat.org \
--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).