@@ -2202,15 +2202,27 @@ template <> OBJECTREF* TGcInfoDecoder<InterpreterGcInfoEncoding>::GetStackSlot(
2202
2202
uint8_t * fp = (uint8_t *)
2203
2203
#if defined(TARGET_AMD64)
2204
2204
pRD->pCurrentContext ->Rbp ;
2205
- #elif defined(TARGET_ARM) || defined(TARGET_ARM64)
2206
- pRD->pCurrentContext ->R7 ;
2205
+ #elif defined(TARGET_ARM)
2206
+ // FIXME: CONTEXTGetFp says R7 but cgencpu.h says R11
2207
+ pRD->pCurrentContext ->R11 ;
2208
+ #elif defined(TARGET_ARM64)
2209
+ // Speculative based on cgencpu.h
2210
+ pRD->pCurrentContext ->Fp ;
2211
+ #elif defined(TARGET_LOONGARCH)
2212
+ // Speculative based on cgencpu.h
2213
+ pRD->pCurrentContext ->Fp ;
2214
+ #elif defined(TARGET_RISCV64)
2215
+ // Speculative based on cgencpu.h
2216
+ pRD->pCurrentContext ->Fp ;
2207
2217
#elif defined(TARGET_S390X)
2218
+ // Speculative based on CONTEXTGetFp
2208
2219
pRD->pCurrentContext ->R11 ;
2209
2220
#elif defined(TARGET_POWERPC64)
2221
+ // Speculative based on CONTEXTGetFp
2210
2222
pRD->pCurrentContext ->R31 ;
2211
2223
#else
2212
2224
NULL ;
2213
- _ASSERTE (!" Unimplemented architecture for GetStackSlot" );
2225
+ _ASSERTE (!" Unimplemented architecture for TGcInfoDecoder<InterpreterGcInfoEncoding>:: GetStackSlot" );
2214
2226
return NULL ;
2215
2227
#endif
2216
2228
0 commit comments