From: "Emilio G. Cota" <cota@braap.org>
To: Michael Clark <mjc@sifive.com>
Cc: Andrew Waterman <andrew@sifive.com>, Zong Li <zongbox@gmail.com>,
Zong Li <zong@andestech.com>, Palmer Dabbelt <palmer@sifive.com>,
RISC-V SW Dev <sw-dev@groups.riscv.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Richard Henderson <richard.henderson@linaro.org>,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
Sagar Karandikar <sagark@eecs.berkeley.edu>,
Alistair Francis <Alistair.Francis@wdc.com>
Subject: Re: [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL
Date: Fri, 20 Apr 2018 14:57:59 -0400 [thread overview]
Message-ID: <20180420185759.GA28290@flamenco> (raw)
In-Reply-To: <CAHNT7NshWPN-8pFzF9+PR9rcNOKmBDn5zpzvF0n6rfyzRg93tQ@mail.gmail.com>
On Fri, Apr 20, 2018 at 12:31:42 +1200, Michael Clark wrote:
(snip)
> In any case it seems we need some pretty major changes to translate.c
> before we can make misa writable in qemu-riscv. Almost every gen routine
> with the exception of RVI will need predication based on extensions. It
> makes one pause and think whether adding if statements is a good approach
> or whether having exension metadata available in the decoder so that it can
> be done generically. Adding lots of riscv_has_ext checks would be nasty.
>
> We will need to add misa to DisasContext so that we can
> remove CPURISCVState *env from gen methods.
>
> It also doesn't make sense to start this until we have merged Emilio's
> DisasContextBase changes.
>
> It would be nice if Emilio's changes can be merged early in the 2.13 cycle
> so that folk are able to make progress on extension checking to
> target/riscv/translate.c
Most of those changes have been reviewed, so I'm confident they'll be
merged early in the 2.13 cycle. That said, you might want to already
work on the changes you need on top of the v3 series I just sent,
which is available at:
https://github.com/cota/qemu/tree/trloop-conv-v3
Cheers,
Emilio
next prev parent reply other threads:[~2018-04-20 18:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+ZOyaj_4my=u4-MkAbyoee5ORnRq6nyaU+HhX1K6t2+Cn5RHg@mail.gmail.com>
2018-04-19 4:43 ` [Qemu-devel] [sw-dev] The problem of write misa on QEMU and BBL Michael Clark
2018-04-19 9:28 ` Zong Li
2018-04-20 0:05 ` Michael Clark
2018-04-20 0:11 ` Michael Clark
2018-04-20 0:12 ` Andrew Waterman
2018-04-20 0:31 ` Michael Clark
2018-04-20 18:57 ` Emilio G. Cota [this message]
2018-04-20 0:11 ` Andrew Waterman
2018-04-20 1:33 ` Zong Li
2018-04-20 1:40 ` Zong Li
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=20180420185759.GA28290@flamenco \
--to=cota@braap.org \
--cc=Alistair.Francis@wdc.com \
--cc=andrew@sifive.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=mjc@sifive.com \
--cc=palmer@sifive.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sagark@eecs.berkeley.edu \
--cc=sw-dev@groups.riscv.org \
--cc=zong@andestech.com \
--cc=zongbox@gmail.com \
/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).