How can I properly add a new custom device to QEMU?

364 Views Asked by At

I have to write and add a custom device to QEMU, it's a crypto accelerator core. The device is then to be simulated for Linux using the RISC-V ISA.

I have implemented the cryptographic algorithm inside a custom QEMU device in C using the QEMU object model. I now have a .c file. However, I can't understand how to add it to the QEMU system to build it for my ISA and then test it. I found the documentation for QEMU to be unorganized and not very helpful in this regard, neither can I find any guide online to add devices for the latest meson build system that QEMU uses.

I think this part is missing from the QEMU documentation. I'm using QEMU for the first time so kindly help me with this with a stepwise approach.

0

There are 0 best solutions below