Skip to content

Commit e2a9979

Browse files
committed
trees: Update softfloat for armv6m
1 parent bb69f1d commit e2a9979

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/emltrees/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SRC = trees.c trees.py
2222

2323
# Stuff to make soft-float work
2424
# If symbols are undefined, use tools/find_symbols.py to locate object files to add
25-
SOFTFP_O := _arm_cmpsf2.o lesf2.o _arm_fixsfsi.o fixsfsi.o eqsf2.o gesf2.o _arm_addsubsf3.o _arm_muldivsf3.o
25+
SOFTFP_O := _arm_cmpsf2.o lesf2.o _arm_fixsfsi.o fixsfsi.o eqsf2.o gesf2.o _arm_addsubsf3.o _arm_muldivsf3.o addsf3.o _clzsi2.o _udivsi3.o floatsisf.o divsf3.o _thumb1_case_uqi.o
2626
XTENSA_SOFTFP_O := _divsf3.o
2727
SOFTFP_ENABLE := 0
2828
ifeq ($(ARCH), armv6m)

src/emltrees/trees.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ void *memset(void *s, int c, size_t n) {
1818
}
1919
#endif
2020

21+
// Softfloat
22+
int
23+
__aeabi_idiv0(int return_value) {
24+
return return_value;
25+
}
26+
2127

2228
// For building up an EmlTrees structure
2329
typedef struct _EmlTreesBuilder {

0 commit comments

Comments
 (0)