Skip to content

Commit 25da7e9

Browse files
committed
fixup! Use FVP models to test AArch64 Big Endian Variants.
QEMU's doesn't have big-endian support in the release binaries. so need to use FVPs to test those libraries.
1 parent c25b083 commit 25da7e9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CMakeLists.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,24 @@ add_library_variants_for_cpu(
16401640
COMPILE_FLAGS "-march=armv8-a"
16411641
MULTILIB_FLAGS "--target=aarch64-unknown-none-elf"
16421642
PICOLIBC_BUILD_TYPE "release"
1643+
QEMU_MACHINE "virt"
1644+
QEMU_CPU "cortex-a57"
1645+
BOOT_FLASH_ADDRESS 0x40000000
1646+
BOOT_FLASH_SIZE 0x1000
1647+
FLASH_ADDRESS 0x40001000
1648+
FLASH_SIZE 0xfff000
1649+
RAM_ADDRESS 0x41000000
1650+
RAM_SIZE 0x1000000
1651+
STACK_SIZE 8K
1652+
)
1653+
add_library_variants_for_cpu(
1654+
aarch64a_be
1655+
COMPILE_FLAGS "--target=aarch64_be-unknown-none-elf -mbig-endian"
1656+
MULTILIB_FLAGS "--target=aarch64_be-unknown-none-elf -mbig-endian"
1657+
PICOLIBC_BUILD_TYPE "release"
16431658
EXECUTOR fvp
16441659
FVP_MODEL aem-a
1645-
FVP_CONFIG "v8a-aarch64"
1660+
FVP_CONFIG "v8a-aarch64 big-endian"
16461661
BOOT_FLASH_ADDRESS 0x80000000
16471662
BOOT_FLASH_SIZE 0x1000
16481663
FLASH_ADDRESS 0x80001000

big-endian.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cluster0.cpu0.CFGEND=1

0 commit comments

Comments
 (0)