From c66c7f3f3f9c6cc63400fa7b6079f8e2950d0c19 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 15 Mar 2026 09:46:32 +0000 Subject: [PATCH] x86_64: cmake: enable RDRAND support when running the kernel under qemu --- arch/x86_64/QEMU.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86_64/QEMU.cmake b/arch/x86_64/QEMU.cmake index 5c7dbc4..f1a9474 100644 --- a/arch/x86_64/QEMU.cmake +++ b/arch/x86_64/QEMU.cmake @@ -8,7 +8,8 @@ find_program(LLDB lldb) find_program(GDB gdb) set(patched_kernel ${CMAKE_CURRENT_BINARY_DIR}/kernel/${kernel_name}.elf32) -set(generic_flags -m 1G) +set(generic_flags -m 128M -cpu qemu64,+rdrand) + set(no_debug_flags) if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")