Fixed semihosting for ARM when heapinfo not provided by debugger.

This commit is contained in:
David Hoover 2016-04-21 07:12:24 +02:00 committed by Corinna Vinschen
parent 60f867812c
commit 5c9403eaf4
1 changed files with 3 additions and 1 deletions

View File

@ -125,9 +125,11 @@
/* Set __heap_limit. */
ldr r1, [r0, #4]
cmp r1, #0
beq .LC33
ldr r2, =__heap_limit
str r1, [r2]
.LC33:
ldr r1, [r0, #0]
cmp r1, #0
bne .LC32