3 ms·
Is this work being done by an enthusiast, a company, or something else? I'm glad it's being done, just curious to know if there's a company with a profit incen
by freedomben 5y ago
Is this work being done by an enthusiast, a company, or something else?
I'm glad it's being done, just curious to know if there's a company with a profit incentive behind it. I don't say that as though it's a bad thing - there are tons of benefits of that. Just trying to understand what's happening.
Regardless, thank you for your efforts! I dream of a day when I buy a high performance RISC-V machine to use as my workstation.
- ansible 5y agoIt seems like people like writing emulators for fun, or to learn a particular architecture.
- wolfreiser 5y agoThere's no company behind, the work was done purely on enthusiasm. The main purpose was education and, because RISC-V boards are not widely available, software porting - including RVVM itself - I ran it on N900, but it was not so fast as I expected. Hopefully this will be resolved when JIT will be finished. As for other projects - Xash3D server was ported to RISC-V thanks to RVVM. And saying that you've written a virtual machine sounds cool too :)
- mindentropy 5y agoHow much time did you take to write the emulator? I am very interested in emulation and have been with wrestling with Qemu for quite sometime now to port an architecture to it. I find it needlessly complicated though.
- wolfreiser 5y agoTime required depends on complexity of the target architecture, desired performance and debugging, which is probably the most time-consuming. At the beginning when interpreter wasn't tested yet we had a problem of Linux kernel crashing at the early stages of boot, IIRC that was memory setup. However, the bootloader (OpenSBI) booted correctly. Initially we thought that there was something unimplemented in the emulator, but it turned out there was a bug in one compressed instruction. Debugging this was a nightmare. After the fix kernel booted right to the userspace startup. So booting Linux took us about 2 months of work in total. If you want to go form scratch compilcations will start to appear when you go out of the CPU and start implementing devices. You'll going to need them anyway because you'll want to boot from disk image or move a cursor in X :). Devices are independent of the CPU architecture and have their own standards, so implementing them will take some time too.