Merge pull request #3297 from Sonicadvance1/remove_getprogramstatus

FEXCore: Removes GetProgramStatus
This commit is contained in:
Ryan Houdek authored and GitHub committed 2023-11-30 16:29:37 -08:00
commit c8ef77c15f
4 files changed
+3 -18

No files matched your search

@@ -89,8 +89,6 @@ namespace FEXCore::Context {
void CompileRIP(FEXCore::Core::InternalThreadState *Thread, uint64_t GuestRIP) override;
void CompileRIPCount(FEXCore::Core::InternalThreadState *Thread, uint64_t GuestRIP, uint64_t MaxInst) override;
int GetProgramStatus() const override;
bool IsDone() const override;
void SetCustomCPUBackendFactory(CustomCPUFactoryType Factory) override;
-4
View File
@@ -511,10 +511,6 @@ namespace FEXCore::Context {
Dispatcher->ExecuteDispatch(Thread->CurrentFrame);
}
int ContextImpl::GetProgramStatus() const {
return ParentThread->StatusCode;
}
struct ExecutionThreadHandler {
ContextImpl *This;
FEXCore::Core::InternalThreadState *Thread;
-10
View File
@@ -191,16 +191,6 @@ namespace FEXCore::Context {
FEX_DEFAULT_VISIBILITY virtual void CompileRIP(FEXCore::Core::InternalThreadState *Thread, uint64_t GuestRIP) = 0;
FEX_DEFAULT_VISIBILITY virtual void CompileRIPCount(FEXCore::Core::InternalThreadState *Thread, uint64_t GuestRIP, uint64_t MaxInst) = 0;
/**
* @brief Gets the program exit status
*
*
* @param CTX The context that we created
*
* @return The program exit status
*/
FEX_DEFAULT_VISIBILITY virtual int GetProgramStatus() const = 0;
/**
* @brief [[theadsafe]] Checks if the Context is either done working or paused(in the case of single stepping)
*
+3 -2
View File
@@ -480,7 +480,8 @@ int main(int argc, char **argv, char **const envp) {
if (GdbServer) {
DebugServer = fextl::make_unique<FEX::GdbServer>(CTX.get(), SignalDelegation.get(), SyscallHandler.get());
}
CTX->InitCore(Loader.DefaultRIP(), Loader.GetStackPointer());
auto ParentThread = CTX->InitCore(Loader.DefaultRIP(), Loader.GetStackPointer());
// Pass in our VDSO thunks
CTX->AppendThunkDefinitions(FEX::VDSO::GetVDSOThunkDefinitions());
@@ -556,7 +557,7 @@ int main(int argc, char **argv, char **const envp) {
}
}
auto ProgramStatus = CTX->GetProgramStatus();
auto ProgramStatus = ParentThread->StatusCode;
DebugServer.reset();
SyscallHandler.reset();