!8254 repair board alarm

Merge pull request !8254 from yy/master
This commit is contained in:
openharmony_ci 2024-07-20 22:25:07 +00:00 committed by Gitee
commit 89a83f6fc4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 16 additions and 2 deletions

View File

@ -177,7 +177,7 @@ uint32_t ElfBuilder::GetShIndex(ElfSecName section) const
}
idx++;
}
return -1;
return 0;
}
int ElfBuilder::GetSecNum() const

View File

@ -1227,7 +1227,8 @@ void AsmInterpreterCall::ResumeRspAndReturn(ExtendedAssembler *assembler)
__ BindAssemblerStub(RTSTUB_ID(ResumeRspAndReturn));
Register currentSp = r12;
Register fpRegister = r10;
intptr_t offset = AsmInterpretedFrame::GetFpOffset(false) - AsmInterpretedFrame::GetSize(false);
intptr_t offset = AsmInterpretedFrame::GetFpOffsetAsIntptr(false) -
AsmInterpretedFrame::GetSizeAsIntptr(false);
__ Movq(Operand(currentSp, static_cast<int32_t>(offset)), fpRegister);
__ Movq(fpRegister, rsp);
// return

View File

@ -1089,6 +1089,16 @@ struct AsmInterpretedFrame : public base::AlignedStruct<JSTaggedValue::TaggedTyp
return isArch32 ? AsmInterpretedFrame::SizeArch32 : AsmInterpretedFrame::SizeArch64;
}
static intptr_t GetFpOffsetAsIntptr(bool isArch32)
{
return static_cast<intptr_t>(GetFpOffset(isArch32));
}
static intptr_t GetSizeAsIntptr(bool isArch32)
{
return static_cast<intptr_t>(GetSize(isArch32));
}
static uint32_t NumOfMembers()
{
return sizeof(AsmInterpretedFrame) / JSTaggedValue::TaggedTypeSize();

View File

@ -56,6 +56,9 @@ public:
dataInfo_ = nullptr;
funAddr_.clear();
fun2FpDelta_.clear();
llvmStackMap_.head.stackmapversion = 0;
llvmStackMap_.head.reserved0 = 0;
llvmStackMap_.head.reserved1 = 0;
}
~LLVMStackMapParser()
{