Debugging RISCV Programs with QEMU and GDB
Debugging code can sometimes take longer than writing it. So how do we use QEMU + GDB to debug RISCV programs? To document this process, we will write the following assembly code using the ADD instruction as an example. We will put 1 into register x2, 2 into register x3, and then add the values … Read more