Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: Jacob Lifshay <programmerjake@gmail.com>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] Status on Our RISCV Implementation
Date: Tue, 24 Mar 2020 10:44:05 -0700
Message-ID: <CAC2bXD7DfmUgx_OGODHX4ahH7HmwTd5LE0r_jkaxiF+NTuQzkg@mail.gmail.com> (raw)
In-Reply-To: <CAPweEDzdwANkVmqbDV0gPc=EAGkhknMNDW72ypTkoW-zFz8Gow@mail.gmail.com>

On Tue, Mar 24, 2020, 06:59 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
wrote:

> On Tue, Mar 24, 2020 at 1:11 PM Immanuel, Yehowshua U
> <yimmanuel3@gatech.edu> wrote:
>
> > > nope.  not for RISC-V.  userspace only.
> >
> > So I guess we’d have a POWER kernel…
>
> correct.  and POWER TLBs and MMU.
>
> > If a binary tries to call RISCV instructions to set supervisor mode
> register - how is that handled?
>
> from userspace? fail... just like any other userspace RISC-V program
> is not permitted to set a supervisor mode register on any standard
> RISC-V system.


However, it's perfectly possible to have software that catches the illegal
instruction traps and emulates them, allowing running a RISC-V kernel.

Jacob
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24 11:39 Immanuel, Yehowshua U
2020-03-24 12:07 ` Luke Kenneth Casson Leighton
2020-03-24 13:11   ` Immanuel, Yehowshua U
2020-03-24 13:58     ` Luke Kenneth Casson Leighton
2020-03-24 17:44       ` Jacob Lifshay [this message]
2020-03-24 20:12         ` Luke Kenneth Casson Leighton

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=CAC2bXD7DfmUgx_OGODHX4ahH7HmwTd5LE0r_jkaxiF+NTuQzkg@mail.gmail.com \
    --to=programmerjake@gmail.com \
    --cc=libre-riscv-dev@lists.libre-riscv.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

Libre RISC-V Mailing list Archives (accessible via public-inbox)

Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev

Example config snippet for mirrors


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git