Skip to content

Commit

Permalink
plat/xen: Include fp_arm64.c in FPSIMD Xen ARM64 builds
Browse files Browse the repository at this point in the history
`fp_arm64.c` implements `fpsimd_save_state()` and
`fpsimd_restore_state()` that are required by FPSIMD ARM64 builds. The
file was not included in the build rules (in `Makefile.uk`) resulting in
a build error.

Fix the build error by including `fp_arm64.c` in the Xen build rules.
This is similar to its inclusion in the KVM build rules.

GitHub-Fixes: unikraft#1522
Signed-off-by: Razvan Deaconescu <[email protected]>
Reviewed-by: Oleksii Moisieiev <[email protected]>
Approved-by: Michalis Pappas <[email protected]>
GitHub-Closes: unikraft#1523
  • Loading branch information
razvand authored and unikraft-bot committed Oct 14, 2024
1 parent 672bd24 commit f1dd5d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plat/xen/Makefile.uk
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ LIBXENPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/traps_arm64.
LIBXENPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/time.c
LIBXENPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/generic_timer.c

ifeq ($(CONFIG_FPSIMD),y)
LIBXENPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/fp_arm64.c
endif
ifeq ($(CONFIG_HAVE_SMP),y)
LIBXENPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/lcpu_start.S
endif
Expand Down

0 comments on commit f1dd5d6

Please sign in to comment.