From 99977294aa87793955bc276ded3d861fd13edd62 Mon Sep 17 00:00:00 2001 From: Achilleas Anagnostopoulos Date: Tue, 11 Jul 2017 20:26:08 +0100 Subject: [PATCH] Disable bounds-checking for release builds and use std vga with qemu By passing "-std vga" to qemu we can access all sorts of useful resolutions for testing the kernel (e.g 2560x1600x32) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c9bcaa7..05f39ad 100644 --- a/Makefile +++ b/Makefile @@ -129,13 +129,14 @@ iso: endif +run: GC_FLAGS += -B run: iso - qemu-system-$(ARCH) -cdrom $(iso_target) -d int,cpu_reset -no-reboot + qemu-system-$(ARCH) -cdrom $(iso_target) -vga std -d int,cpu_reset -no-reboot # When building gdb target disable optimizations (-N) and inlining (l) of Go code gdb: GC_FLAGS += -N -l gdb: iso - qemu-system-$(ARCH) -M accel=tcg -s -S -cdrom $(iso_target) & + qemu-system-$(ARCH) -M accel=tcg -vga std -s -S -cdrom $(iso_target) & sleep 1 gdb \ -ex 'add-auto-load-safe-path $(pwd)' \