mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.58k stars 2.38k forks source link

can't get into the kernel if turn on qemu single step #152

Closed quantrpeter closed 1 year ago

quantrpeter commented 1 year ago

Hi all can't get into the kernel if turn on qemu single step, please help

qemu-system-riscv64 -machine virt -bios none -kernel kernel/kernel -m 128M -smp 1 -nographic -global virtio-mmio.force-legacy=false -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -singlestep -d cpu,nochain,in_asm,int -D qemu.log

thanks Peter

binarycraft007 commented 1 year ago

Hi all can't get into the kernel if turn on qemu single step, please help

qemu-system-riscv64 -machine virt -bios none -kernel kernel/kernel -m 128M -smp 1 -nographic -global virtio-mmio.force-legacy=false -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -singlestep -d cpu,nochain,in_asm,int -D qemu.log

thanks Peter

Hi Peter,

I have this problem too, note that you can always use web archive to access it: link, cheers.

Thanks, binarycraft

quantrpeter commented 1 year ago

hi, i found out it is just slow, waited for 15 mins then it works