File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -55,21 +55,22 @@ disasm-vim: kernel
5555
5656run : run-inner
5757
58+ QEMU_ARGS := -machine virt \
59+ -nographic \
60+ -bios $(BOOTLOADER ) \
61+ -device loader,file=$(KERNEL_BIN ) ,addr=$(KERNEL_ENTRY_PA )
62+
5863run-inner : build
59- @qemu-system-riscv64 \
60- -machine virt \
61- -nographic \
62- -bios $(BOOTLOADER ) \
63- -device loader,file=$(KERNEL_BIN ) ,addr=$(KERNEL_ENTRY_PA )
64+ @qemu-system-riscv64 $(QEMU_ARGS )
6465
6566debug : build
6667 @tmux new-session -d \
67- " qemu-system-riscv64 -machine virt -nographic -bios $( BOOTLOADER ) -device loader,file= $( KERNEL_BIN ) ,addr= $( KERNEL_ENTRY_PA ) -s -S" && \
68+ " qemu-system-riscv64 $( QEMU_ARGS ) -s -S" && \
6869 tmux split-window -h " riscv64-unknown-elf-gdb -ex 'file $( KERNEL_ELF) ' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'" && \
6970 tmux -2 attach-session -d
7071
7172gdbserver : build
72- @qemu-system-riscv64 -machine virt -nographic -bios $( BOOTLOADER ) -device loader,file= $( KERNEL_BIN ) ,addr= $( KERNEL_ENTRY_PA ) -s -S
73+ @qemu-system-riscv64 $( QEMU_ARGS ) -s -S
7374
7475gdbclient :
7576 @riscv64-unknown-elf-gdb -ex ' file $(KERNEL_ELF)' -ex ' set arch riscv:rv64' -ex ' target remote localhost:1234'
You can’t perform that action at this time.
0 commit comments