From 426e68e91b5ea82bad1f42dbd6ef27206d1bb8a6 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 28 Oct 2022 08:51:43 +0300 Subject: [PATCH] vscode_debug: should start with quarter of cpu cores --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fc7b126a..c0d2fe1b 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,6 @@ ifeq ($(OSARCH), amd64) QEMUFLAGS += -device bochs-display -M q35 \ -usb \ -usbdevice mouse \ - -smp $(shell nproc) \ -net user \ -netdev user,id=usernet0 \ -device e1000,netdev=usernet0,mac=00:69:96:00:42:00 \ @@ -57,7 +56,6 @@ else ifeq ($(OSARCH), i686) QEMUFLAGS += -M q35 \ -usb \ -usbdevice mouse \ - -smp $(shell nproc) \ -net user \ -netdev user,id=usernet0 \ -device e1000,netdev=usernet0,mac=00:69:96:00:42:00 \ @@ -160,15 +158,15 @@ endif vscode_debug: build_kernel build_userspace build_drivers build_image rm -f serial.log network.log - $(QEMU) -S -gdb tcp::1234 -d int -no-reboot -no-shutdown $(QEMU_UEFI_BIOS) -m 4G $(QEMUFLAGS) + $(QEMU) -S -gdb tcp::1234 -d int -no-reboot -no-shutdown $(QEMU_UEFI_BIOS) -m 4G $(QEMUFLAGS) -smp $(shell echo $(shell nproc)/4 | bc) qemu: qemu_vdisk rm -f serial.log network.log - $(QEMU) $(QEMU_UEFI_BIOS) -cpu host $(QEMUFLAGS) $(QEMUHWACCELERATION) $(QEMUMEMORY) + $(QEMU) $(QEMU_UEFI_BIOS) -cpu host $(QEMUFLAGS) $(QEMUHWACCELERATION) $(QEMUMEMORY) -smp $(shell nproc) qemubios: qemu_vdisk rm -f serial.log network.log - $(QEMU) -cpu host $(QEMUFLAGS) $(QEMUHWACCELERATION) $(QEMUMEMORY) + $(QEMU) -cpu host $(QEMUFLAGS) $(QEMUHWACCELERATION) $(QEMUMEMORY) -smp $(shell nproc) run: build qemu