@@ -720,6 +720,7 @@ function(
720720 default_ram_size
721721 default_stack_size
722722 run_tests
723+ executor
723724)
724725 if (CMAKE_INSTALL_MESSAGE STREQUAL NEVER)
725726 set (MESON_INSTALL_QUIET "--quiet" )
@@ -755,6 +756,7 @@ function(
755756 -Dtests-enable-stack-protector=false
756757 -Dtest-long-double=${enable_long_double_test}
757758 -Dnewlib-nano-malloc=${newlib_nano_malloc}
759+ -Dtest-machine=${executor}
758760 --prefix <INSTALL_DIR>
759761 --cross-file <BINARY_DIR>/meson-cross-build .txt
760762 --buildtype=${build_type}
@@ -1040,6 +1042,7 @@ macro(
10401042 default_ram_size
10411043 default_stack_size
10421044 run_tests
1045+ executor
10431046)
10441047 # It would be nice to just pass ${ARGN} to both the underlying functions,
10451048 # but that has the side effect of expanding any list arguments (e.g.
@@ -1062,6 +1065,7 @@ macro(
10621065 "${default_ram_size} "
10631066 "${default_stack_size} "
10641067 "${run_tests} "
1068+ "${executor} "
10651069 )
10661070 elseif (LLVM_TOOLCHAIN_C_LIBRARY STREQUAL newlib)
10671071 add_newlib(
@@ -1453,6 +1457,7 @@ function(add_library_variant target_arch)
14531457 set (have_executor FALSE )
14541458 endif ()
14551459 else ()
1460+ set (VARIANT_EXECUTOR "qemu" )
14561461 get_qemu_params(
14571462 "${target_triple} "
14581463 "${VARIANT_QEMU_MACHINE} "
@@ -1483,6 +1488,7 @@ function(add_library_variant target_arch)
14831488 "${VARIANT_RAM_SIZE} "
14841489 "${VARIANT_STACK_SIZE} "
14851490 "${have_executor} "
1491+ "${VARIANT_EXECUTOR} "
14861492 )
14871493 add_compiler_rt(
14881494 "${directory} "
@@ -1634,13 +1640,14 @@ add_library_variants_for_cpu(
16341640 COMPILE_FLAGS "-march=armv8-a"
16351641 MULTILIB_FLAGS "--target=aarch64-unknown-none-elf"
16361642 PICOLIBC_BUILD_TYPE "release"
1637- QEMU_MACHINE "virt"
1638- QEMU_CPU "cortex-a57"
1639- BOOT_FLASH_ADDRESS 0x40000000
1643+ EXECUTOR fvp
1644+ FVP_MODEL aem-a
1645+ FVP_CONFIG "v8a-aarch64"
1646+ BOOT_FLASH_ADDRESS 0x80000000
16401647 BOOT_FLASH_SIZE 0x1000
1641- FLASH_ADDRESS 0x40001000
1648+ FLASH_ADDRESS 0x80001000
16421649 FLASH_SIZE 0xfff000
1643- RAM_ADDRESS 0x41000000
1650+ RAM_ADDRESS 0x81000000
16441651 RAM_SIZE 0x1000000
16451652 STACK_SIZE 8K
16461653)
0 commit comments