Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
* [libre-riscv-dev] Status on Our RISCV Implementation
@ 2020-03-24 11:39 Immanuel, Yehowshua U
  2020-03-24 12:07 ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 6+ messages in thread
From: Immanuel, Yehowshua U @ 2020-03-24 11:39 UTC (permalink / raw)
  To: Libre-RISCV General Development

I’m curious, what is the status of our RISCV implementation.

Do we have:
1. A decoder - I’m pretty sure we do
2. A page table walker
3. FPU support
4. Supervisor/Hypervisor mode support?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [libre-riscv-dev] Status on Our RISCV Implementation
  2020-03-24 11:39 [libre-riscv-dev] Status on Our RISCV Implementation Immanuel, Yehowshua U
@ 2020-03-24 12:07 ` Luke Kenneth Casson Leighton
  2020-03-24 13:11   ` Immanuel, Yehowshua U
  0 siblings, 1 reply; 6+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-03-24 12:07 UTC (permalink / raw)
  To: Libre-RISCV General Development

On Tue, Mar 24, 2020 at 11:39 AM Immanuel, Yehowshua U
<yimmanuel3@gatech.edu> wrote:
>
> I’m curious, what is the status of our RISCV implementation.
>
> Do we have:
> 1. A decoder - I’m pretty sure we do

using minerva: it will need updating to RV64GC

> 2. A page table walker

nope.  not for RISC-V.

> 3. FPU support

yes.

> 4. Supervisor/Hypervisor mode support?

nope.  not for RISC-V.  userspace only.

l.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [libre-riscv-dev] Status on Our RISCV Implementation
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Immanuel, Yehowshua U @ 2020-03-24 13:11 UTC (permalink / raw)
  To: Libre-RISCV General Development

> nope.  not for RISC-V.  userspace only.

So I guess we’d have a POWER kernel…
If a binary tries to call RISCV instructions to set supervisor mode register - how is that handled?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [libre-riscv-dev] Status on Our RISCV Implementation
  2020-03-24 13:11   ` Immanuel, Yehowshua U
@ 2020-03-24 13:58     ` Luke Kenneth Casson Leighton
  2020-03-24 17:44       ` Jacob Lifshay
  0 siblings, 1 reply; 6+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-03-24 13:58 UTC (permalink / raw)
  To: Libre-RISCV General Development

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.

there will *be* no supervisor mode RISC-V... therefore implementation
of supervisor mode RISC-V registers is completely unnecessary.

userspace RISC-V is only permitted to set userspace RISC-V CSRs.

l.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [libre-riscv-dev] Status on Our RISCV Implementation
  2020-03-24 13:58     ` Luke Kenneth Casson Leighton
@ 2020-03-24 17:44       ` Jacob Lifshay
  2020-03-24 20:12         ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Lifshay @ 2020-03-24 17:44 UTC (permalink / raw)
  To: Libre-RISCV General Development

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [libre-riscv-dev] Status on Our RISCV Implementation
  2020-03-24 17:44       ` Jacob Lifshay
@ 2020-03-24 20:12         ` Luke Kenneth Casson Leighton
  0 siblings, 0 replies; 6+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-03-24 20:12 UTC (permalink / raw)
  To: Libre-RISCV General Development

On Tuesday, March 24, 2020, Jacob Lifshay <programmerjake@gmail.com> wrote:

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


oh.  yes. good point.  qemu will be doing something like this, i believe?



-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 11:39 [libre-riscv-dev] Status on Our RISCV Implementation 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
2020-03-24 20:12         ` Luke Kenneth Casson Leighton

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