From: Duje Mihanović Date: Tue, 22 Aug 2023 21:07:19 +0000 (+0200) Subject: Makefile: Update QEMU arguments to more closely match i686 hardware X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B?a=commitdiff_plain;h=49cd825f2815c9e8f775c81d471864b709065155;p=nameless-os.git Makefile: Update QEMU arguments to more closely match i686 hardware --- diff --git a/Makefile b/Makefile index cc92307..502430a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ export CROSS_COMPILE = i686-elf- export AS = yasm export CC = gcc -export QEMU = qemu-system-i386 -monitor stdio +export QEMU = qemu-system-i386 -monitor stdio -cpu pentium2 export GIT_REV = $(shell git describe --long HEAD) export REAL_CC = $(CROSS_COMPILE)$(CC) export CFLAGS @@ -12,9 +12,9 @@ MAKEFLAGS += -rR default: kernel/kernel.elf bootloader all: default boot/x86/disk.img run: all - $(QEMU) boot/x86/disk.img + $(QEMU) -drive file=boot/x86/disk.img,format=raw,throttling.iops-total=100 debug: all - $(QEMU) -s -S boot/x86/disk.img + $(QEMU) -s -S -drive file=boot/x86/disk.img,format=raw,throttling.iops-total=100 kernel/kernel.elf: $(MAKE) -C kernel