You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this commit, semu is able to simulate SMP architecture on Linux
kernel. The original `vm_t` has been changed to `hart_t`, and now
`vm_t` represents the entire virtual machine. Additionally, HSM,
RFENCE, and IPI SBI extensions have been implemented with rough
implementations. Also, the interrupt signal in PLIC is required to
be sent to every hart. Lastly, ensure the LR/SC instructions in
semu are handled properly.
Before simulation, we need to enable SMP support in the Linux
kernel. Please cross-compile the Linux kernel with the configuration
file located at configs/linux.config
After recompiling the Linux kernel with SMP support enabled, simply
execute `make check SMP=n`, where n means the number of hart you want to
simulate, and SMP=1 is the default setting. If you want to execute semu
by yourself, the --smp argument can be used to specify the hart to
simulate, and you are responsible for modifying the device tree.
0 commit comments