mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	switching over to hopefully more consistent QEMU simulated clock
This commit is contained in:
		
							parent
							
								
									9fde9f09f2
								
							
						
					
					
						commit
						135404174e
					
				@ -14,16 +14,16 @@ outDir="../linux-testvectors"
 | 
				
			|||||||
# Uncomment this version for QEMU debugging of kernel
 | 
					# Uncomment this version for QEMU debugging of kernel
 | 
				
			||||||
#  - good for poking around VM if it boots up
 | 
					#  - good for poking around VM if it boots up
 | 
				
			||||||
#  - good for running QEMU commands (press "Ctrl-A" then "c" to open QEMU command prompt)
 | 
					#  - good for running QEMU commands (press "Ctrl-A" then "c" to open QEMU command prompt)
 | 
				
			||||||
#$customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio 
 | 
					#$customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -rtc clock=vm -icount shift=1
 | 
				
			||||||
# Uncomment this version for GDB debugging of kernel
 | 
					# Uncomment this version for GDB debugging of kernel
 | 
				
			||||||
#  - attempts to load in symbols from "vmlinux"
 | 
					#  - attempts to load in symbols from "vmlinux"
 | 
				
			||||||
#  - good for looking at backtraces when Linux gets stuck for some reason 
 | 
					#  - good for looking at backtraces when Linux gets stuck for some reason 
 | 
				
			||||||
#$customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -gdb tcp::1237 -S & riscv64-unknown-elf-gdb -x gdbinit_debug
 | 
					$customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -rtc clock=vm -icount shift=1 -gdb tcp::1237 -S & riscv64-unknown-elf-gdb -x gdbinit_debug
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Uncomment this version to generate qemu_output.txt
 | 
					# Uncomment this version to generate qemu_output.txt
 | 
				
			||||||
# - Uses GDB script
 | 
					# - Uses GDB script
 | 
				
			||||||
# - Logs raw QEMU output to qemu_output.txt
 | 
					# - Logs raw QEMU output to qemu_output.txt
 | 
				
			||||||
($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1237 -S 2> $intermedDir/qemu_output.txt) & riscv64-unknown-elf-gdb -x gdbinit_debug
 | 
					#($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -rtc clock=vm -icount shift=1 -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1237 -S 2> $intermedDir/qemu_output.txt) & riscv64-unknown-elf-gdb -x gdbinit_debug
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Uncomment this version for parse_qemu.py debugging
 | 
					# Uncomment this version for parse_qemu.py debugging
 | 
				
			||||||
# - Uses qemu_output.txt
 | 
					# - Uses qemu_output.txt
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user