File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -56,23 +56,22 @@ disasm-vim: kernel
5656
5757run : run-inner
5858
59-
59+ QEMU_ARGS := -machine virt \
60+ -nographic \
61+ -bios $(BOOTLOADER ) \
62+ -device loader,file=$(KERNEL_BIN ) ,addr=$(KERNEL_ENTRY_PA )
6063
6164run-inner : build
62- @qemu-system-riscv64 \
63- -machine virt \
64- -nographic \
65- -bios $(BOOTLOADER ) \
66- -device loader,file=$(KERNEL_BIN ) ,addr=$(KERNEL_ENTRY_PA )
65+ @qemu-system-riscv64 $(QEMU_ARGS )
6766
6867debug : build
6968 @tmux new-session -d \
70- " qemu-system-riscv64 -machine virt -nographic -bios $( BOOTLOADER ) -device loader,file= $( KERNEL_BIN ) ,addr= $( KERNEL_ENTRY_PA ) -s -S" && \
69+ " qemu-system-riscv64 $( QEMU_ARGS ) -s -S" && \
7170 tmux split-window -h " riscv64-unknown-elf-gdb -ex 'file $( KERNEL_ELF) ' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'" && \
7271 tmux -2 attach-session -d
7372
7473gdbserver : build
75- @qemu-system-riscv64 -machine virt -nographic -bios $( BOOTLOADER ) -device loader,file= $( KERNEL_BIN ) ,addr= $( KERNEL_ENTRY_PA ) -s -S
74+ @qemu-system-riscv64 $( QEMU_ARGS ) -s -S
7675
7776gdbclient :
7877 @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