This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 666937241 wamr: Map armv7a/thumbv7a to armv7/thumbv7 for wamrc
666937241 is described below

commit 6669372415b8720becbd5d1d193ddbefda45f523
Author: Huang Qi <[email protected]>
AuthorDate: Thu Jan 16 21:04:27 2025 +0800

    wamr: Map armv7a/thumbv7a to armv7/thumbv7 for wamrc
    
    Summary:
    - Added explicit mapping of thumbv7a architecture to thumbv7 in the WAMR 
toolchain definitions
    - WAMR's AOT compiler uses armv7/thumbv7 as the target architecture for all 
ARMv7-A processors
    - This includes Cortex-A series processors like Cortex-A9 which use the 
armv7a/thumbv7a ISA
    
    Impact:
    - Fixes AOT compilation for ARM Cortex-A processors using thumbv7a 
architecture
    - Maintains compatibility with WAMR's expected target architecture naming
    - Ensures consistent architecture targeting across all ARMv7-A processors
    - No impact on other architectures or build configurations
    
    Signed-off-by: Huang Qi <[email protected]>
---
 interpreters/wamr/Toolchain.defs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/interpreters/wamr/Toolchain.defs b/interpreters/wamr/Toolchain.defs
index c0a6c5b36..741728277 100644
--- a/interpreters/wamr/Toolchain.defs
+++ b/interpreters/wamr/Toolchain.defs
@@ -39,12 +39,16 @@ else ifeq ($(CONFIG_ARCH_SIM),y)
   else
     WTARGET = x86_64
   endif
+else ifeq ($(LLVM_ARCHTYPE),thumbv7a)
+  WTARGET = thumbv7
 else ifeq ($(findstring thumb,$(LLVM_ARCHTYPE)),thumb)
 
   # target triple of thumb may very complex, such as 
thumbv8m.main+dsp+mve.fp+fp.dp
   # so we just use the target name before the first plus sign
 
   WTARGET = $(shell echo $(LLVM_ARCHTYPE) | cut -d'+' -f1)
+else ifeq ($(LLVM_ARCHTYPE),armv7a)
+  WTARGET = armv7
 endif
 
 # If WTARGET is not defined, then use the same as LLVM_ARCHTYPE

Reply via email to