x86_64: enable hugepage support in QEMU
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
QEMU := qemu-system-x86_64
|
QEMU := qemu-system-x86_64
|
||||||
QEMU_FLAGS := -m 64M -smp 4
|
QEMU_FLAGS := -m 64M -smp 4 -cpu qemu64,pdpe1gb
|
||||||
|
|
||||||
ARCH_TEMP_FILES := $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
ARCH_TEMP_FILES := $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ $(BUILD_DIR)/$(KERNEL_EXEC).elf32: $(BUILD_DIR)/$(KERNEL_EXEC)
|
|||||||
run: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
run: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
||||||
@printf " \033[1;93mQEMU\033[0m $<\n"
|
@printf " \033[1;93mQEMU\033[0m $<\n"
|
||||||
|
|
||||||
@$(QEMU) -kernel $(BUILD_DIR)/$(KERNEL_EXEC).elf32 -monitor stdio
|
@$(QEMU) -kernel $(BUILD_DIR)/$(KERNEL_EXEC).elf32 -monitor stdio $(QEMU_FLAGS)
|
||||||
|
|
||||||
debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
||||||
@./tools/kernel-debug/debug_session.sh \
|
@./tools/kernel-debug/debug_session.sh \
|
||||||
@@ -22,6 +22,6 @@ debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
|
|||||||
tools/kernel-debug/lldb_session_init \
|
tools/kernel-debug/lldb_session_init \
|
||||||
$(QEMU) \
|
$(QEMU) \
|
||||||
-kernel $(BUILD_DIR)/$(KERNEL_EXEC).elf32 -S -s \
|
-kernel $(BUILD_DIR)/$(KERNEL_EXEC).elf32 -S -s \
|
||||||
-display curses -serial file:$(BUILD_DIR)/socks.log $(QEMU_FLAGS)
|
-monitor stdio -serial file:$(BUILD_DIR)/socks.log $(QEMU_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user