From 4e7cf6c13817f03d03067f2cb7672a181a42a72e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 12 Nov 2016 22:14:03 +0000 Subject: Fix issue in the copying collector where things were incorrectly (not) marked as already copied --- thumb2copy.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/thumb2copy.s b/thumb2copy.s index 61ac318..72639b1 100644 --- a/thumb2copy.s +++ b/thumb2copy.s @@ -160,7 +160,7 @@ in_hnf_2: str r10,[r5] bhi copy_hnf_node2_3 - str r6,[r10],#1 + str r6,[r10] blo copy_hnf_node2_1 ldr r6,[r7,#4] @@ -169,10 +169,10 @@ in_hnf_2: ldr r4,[r7,#8] subs r3,r3,#1 - str r6,[r10,#4-1] + str r6,[r10,#4] - str r4,[r10,#8-1] - add r10,r10,#12-1 + str r4,[r10,#8] + add r10,r10,#12 bne copy_lp2 mov r8,r2 @@ -184,8 +184,8 @@ copy_hnf_node2_1: subs r3,r3,#1 str r10,[r7] - str r4,[r10,#4-1] - add r10,r10,#8-1 + str r4,[r10,#4] + add r10,r10,#8 bne copy_lp2 mov r8,r2 -- cgit v1.2.3