* support on risc-v 128bits
@ 2024-02-25 23:28 Jean-Christophe Énée
2024-02-25 23:57 ` Alistair Francis
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe Énée @ 2024-02-25 23:28 UTC (permalink / raw)
To: qemu-devel
hi,
i would like developpe my OS on risc-v 128 bits.
after search the support isn´t fully operational
how can i help, and in the same learn risc-v 128 bits
my coding skill is beginner, but i motivate and i learn spead. i'm
waiting the complete guide of C to delanoy
can you give me simple task for begin ? peraps document
best regard,
jean-christophe
P.S. why your ndd is nongnu.org ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: support on risc-v 128bits
2024-02-25 23:28 support on risc-v 128bits Jean-Christophe Énée
@ 2024-02-25 23:57 ` Alistair Francis
2024-02-26 7:16 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 3+ messages in thread
From: Alistair Francis @ 2024-02-25 23:57 UTC (permalink / raw)
To: Jean-Christophe Énée; +Cc: qemu-devel
On Mon, Feb 26, 2024 at 9:30 AM Jean-Christophe Énée
<jean-christophe@blues-softwares.net> wrote:
>
> hi,
> i would like developpe my OS on risc-v 128 bits.
> after search the support isn´t fully operational
We have some basic 128-bit support, but it isn't complete. The RISC-V
spec states:
```
The design of the RV128I base ISA is not yet complete, and while much
of the remainder of this specification is expected to apply to RV128,
this version of the document focuses only on RV32 and RV64
```
so the spec isn't finished either. AFAIK there is also no guest
software we can use for testing.
>
> how can i help, and in the same learn risc-v 128 bits
At this point there isn't really too much to do. There is some basic
support, so maybe you could try and port your OS to that? I'm not sure
how you would compile it for 128-bit support though, as I don't think
any compilers support 128-bits.
>
> my coding skill is beginner, but i motivate and i learn spead. i'm
> waiting the complete guide of C to delanoy
QEMU is probably not the best place to start as a beginner. Especially
the TCG side of things. It's complex code that is difficult to
understand.
On top of that, I don't think 128-bit RISC-V is a good place to start.
I don't think there is compiler support, which is going to make things
tricky.
A better bet is just to target 32-bit RISC-V micro-controllers. That
way you can test in QEMU and then think about running on actual
hardware in the future.
>
> can you give me simple task for begin ? peraps document
Your best bet is probably looking at the RISC-V issues on GitLab [1].
See if any of those are easy to fix and then submit patches
1: https://gitlab.com/qemu-project/qemu/-/issues/?sort=created_date&state=opened&label_name%5B%5D=target%3A%20riscv&first_page_size=20
Alistair
> best regard,
> jean-christophe
>
> P.S. why your ndd is nongnu.org ?
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: support on risc-v 128bits
2024-02-25 23:57 ` Alistair Francis
@ 2024-02-26 7:16 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-02-26 7:16 UTC (permalink / raw)
To: Alistair Francis, Jean-Christophe Énée; +Cc: qemu-devel
On 26/2/24 00:57, Alistair Francis wrote:
> On Mon, Feb 26, 2024 at 9:30 AM Jean-Christophe Énée
> <jean-christophe@blues-softwares.net> wrote:
>>
>> hi,
>> i would like developpe my OS on risc-v 128 bits.
>> after search the support isn´t fully operational
>
> We have some basic 128-bit support, but it isn't complete. The RISC-V
> spec states:
>
> ```
> The design of the RV128I base ISA is not yet complete, and while much
> of the remainder of this specification is expected to apply to RV128,
> this version of the document focuses only on RV32 and RV64
> ```
>
> so the spec isn't finished either. AFAIK there is also no guest
> software we can use for testing.
>
>>
>> how can i help, and in the same learn risc-v 128 bits
>
> At this point there isn't really too much to do. There is some basic
> support, so maybe you could try and port your OS to that? I'm not sure
> how you would compile it for 128-bit support though, as I don't think
> any compilers support 128-bits.
You can also have a look at TinyEMU from Fabrice Bellard:
https://bellard.org/tinyemu/readme.txt
- RISC-V system emulator supporting the RV128IMAFDQC base ISA (user
level ISA version 2.2, priviledged architecture version 1.10)
including:
- 32/64/128 bit integer registers
- 32/64/128 bit floating point instructions
- Compressed instructions
- dynamic XLEN change
...
4) Technical notes
------------------
4.1) 128 bit support
The RISC-V specification does not define all the instruction encodings
for the 128 bit integer and floating point operations. The missing
ones were interpolated from the 32 and 64 ones.
Unfortunately there is no RISC-V 128 bit toolchain nor OS now
(volunteers for the Linux port ?), so rv128test.bin may be the first
128 bit code for RISC-V !
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-26 7:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-25 23:28 support on risc-v 128bits Jean-Christophe Énée
2024-02-25 23:57 ` Alistair Francis
2024-02-26 7:16 ` Philippe Mathieu-Daudé
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).