From: Steve MacLean Date: Thu, 18 Jul 2019 15:37:37 +0000 (-0400) Subject: Arm64 restore d8-d15 in ThrowExceptionFromContextInternal (#25743) X-Git-Tag: accepted/tizen/unified/20191011.080124~142^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=404e72adc3e721ef67b62c26a26c3e0112e67ed3;p=platform%2Fupstream%2Fcoreclr.git Arm64 restore d8-d15 in ThrowExceptionFromContextInternal (#25743) --- diff --git a/src/pal/src/arch/arm64/exceptionhelper.S b/src/pal/src/arch/arm64/exceptionhelper.S index c4499fb..93c9af1 100644 --- a/src/pal/src/arch/arm64/exceptionhelper.S +++ b/src/pal/src/arch/arm64/exceptionhelper.S @@ -31,6 +31,18 @@ LEAF_ENTRY ThrowExceptionFromContextInternal, _TEXT ldp x26,x27, [x0, #(CONTEXT_X26)] ldp x28,fp, [x0, #(CONTEXT_X28)] ldr lr, [x0, #(CONTEXT_Pc)] + + // Restore the lower 64 bits of v8-v15 + add x2, x0, CONTEXT_NEON_OFFSET + ldr d8, [x2, #(CONTEXT_V8 )] + ldr d9, [x2, #(CONTEXT_V9 )] + ldr d10, [x2, #(CONTEXT_V10)] + ldr d11, [x2, #(CONTEXT_V11)] + ldr d12, [x2, #(CONTEXT_V12)] + ldr d13, [x2, #(CONTEXT_V13)] + ldr d14, [x2, #(CONTEXT_V14)] + ldr d15, [x2, #(CONTEXT_V15)] + ldr x2, [x0, #(CONTEXT_Sp)] mov sp, x2