Emulating RV64GC with #RISCV QEMU Emulator
Here's how we fetch the CPU ID in #RISCV Assembly
How we Disable Interrupts in #RISCV Assembly ... And a curious way to loop forever
Loading the Vector Table in #RISCV Assembly
Adapting 32-bit Assembly Code for 64-bit … Easy peasy for #RISCV!
Quick tour of #RISCV Instructions
Here's the complete list of #RISCV Instructions
@lupyuen Hi Lup thx for your awesome posts about #nuttx on embedded systems! I'm currently doing some research for a students tutorial and asking myself if GPIO can be simulated with #qemu and #riscv running #nuttx. Do you have any ideas on how to simulate this using the emu and how must #nuttx be configured to provide the /dev/gpioXX device?
@nekron Thanks :-) I don't think NuttX on RISC-V QEMU supports GPIO. That's because NuttX is hardcoded to use the "Generic Virtual Platform (virt)", which doesn't support GPIO:
We might need to switch to the PolarFire Icicle Emulator for QEMU:
And boot NuttX for PolarFire Icicle:
Sounds complicated though.
QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.