All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: Jessica Clarke <jrtc27@jrtc27.com>
Cc: "Ruinland Chuan-Tzu Tsa\(\(\(\(\(\(\(\(\(\(\)"
	<ruinland@andestech.com>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [RFC PATCH v4 1/4] Add options to config/meson files for custom CSR
Date: Fri, 6 Aug 2021 21:54:31 +0800	[thread overview]
Message-ID: <CAEUhbmXjC_RaN0rMZO0-FFAP8Cce-Kpxy=ZORpi1k=0Nv7OLiw@mail.gmail.com> (raw)
In-Reply-To: <775EB0C4-04FF-4D76-8248-D5B16D238B3B@jrtc27.com>

On Fri, Aug 6, 2021 at 8:58 PM Jessica Clarke <jrtc27@jrtc27.com> wrote:
>
> > On Fri, Aug 6, 2021 at 10:39 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> > >
> > > On Fri, Aug 6, 2021 at 1:57 AM Ruinland Chuan-Tzu Tsai
> > > <ruinland@andestech.com> wrote:
> > > >
> > > > From: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
> > > >
> > > > Adding option `riscv_custom` to configure script, meson.build and
> > > > meson_options.txt so as to toggle custom CSR and will-be-upstreamed custom
> > > > instructions handling logic.
> > > >
> > > > Signed-off-by: Dylan Jhong <dylan@andestech.com>
> > > > ---
> > > >  configure         | 6 ++++++
> > > >  meson.build       | 2 ++
> > > >  meson_options.txt | 2 ++
> > > >  3 files changed, 10 insertions(+)
> > > >
> > >
> > > This sounds like unnecessary to bring such a config option to the meson level.
> > >
> > > I believe a Kconfig option should just be fine.
> >
> > +Alistair
>
> I don’t see why this is even a config option. If you request a vendor’s
> CPU you should get any custom CSRs defined for that vendor’s CPU. If
> you don’t you don’t. This should be purely a run-time thing, no?

In a generic use case where we build all RISC-V machines into one
qemu-system-riscv{32,64} executable this makes no difference. The
Kconfig option will be turned on if any one of the machines requires
it. It only gets benefits when we build a QEMU executable on a
per-machine basis.

Regards,
Bin


  reply	other threads:[~2021-08-06 13:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06 12:58 [RFC PATCH v4 1/4] Add options to config/meson files for custom CSR Jessica Clarke
2021-08-06 13:54 ` Bin Meng [this message]
2021-08-06 14:02   ` Jessica Clarke
2021-08-13  5:11   ` Alistair Francis
  -- strict thread matches above, loose matches on Subject: below --
2021-08-05 17:56 [RFC PATCH v4 0/4] Add basic support " Ruinland Chuan-Tzu Tsai
2021-08-05 17:56 ` [RFC PATCH v4 1/4] Add options to config/meson files " Ruinland Chuan-Tzu Tsai
2021-08-05 17:56   ` Ruinland Chuan-Tzu Tsai
2021-08-06  2:39   ` Bin Meng
2021-08-06  2:39     ` Bin Meng
2021-08-06  2:41     ` Bin Meng
2021-08-06  2:41       ` Bin Meng

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='CAEUhbmXjC_RaN0rMZO0-FFAP8Cce-Kpxy=ZORpi1k=0Nv7OLiw@mail.gmail.com' \
    --to=bmeng.cn@gmail.com \
    --cc=jrtc27@jrtc27.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ruinland@andestech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.