mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 21:21:10 +00:00
Kernel/IPC: Remove dead buffer translation code.
This is all implemented elsewhere, HLERequestContext for HLE requests, and svcReplyAndReceive for LLE requests.
This commit is contained in:
parent
7cf7999e02
commit
8e2d9f48f5
@ -61,12 +61,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
|
|||||||
|
|
||||||
// If this ServerSession has an associated HLE handler, forward the request to it.
|
// If this ServerSession has an associated HLE handler, forward the request to it.
|
||||||
if (hle_handler != nullptr) {
|
if (hle_handler != nullptr) {
|
||||||
// Attempt to translate the incoming request's command buffer.
|
|
||||||
ResultCode result = TranslateHLERequest(this);
|
|
||||||
if (result.IsError())
|
|
||||||
return result;
|
|
||||||
hle_handler->HandleSyncRequest(SharedPtr<ServerSession>(this));
|
hle_handler->HandleSyncRequest(SharedPtr<ServerSession>(this));
|
||||||
// TODO(Subv): Translate the response command buffer.
|
|
||||||
} else {
|
} else {
|
||||||
// Add the thread to the list of threads that have issued a sync request with this
|
// Add the thread to the list of threads that have issued a sync request with this
|
||||||
// server.
|
// server.
|
||||||
@ -96,8 +91,4 @@ ServerSession::SessionPair ServerSession::CreateSessionPair(const std::string& n
|
|||||||
return std::make_tuple(std::move(server_session), std::move(client_session));
|
return std::make_tuple(std::move(server_session), std::move(client_session));
|
||||||
}
|
}
|
||||||
|
|
||||||
ResultCode TranslateHLERequest(ServerSession* server_session) {
|
|
||||||
// TODO(Subv): Implement this function once multiple concurrent processes are supported.
|
|
||||||
return RESULT_SUCCESS;
|
|
||||||
}
|
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
||||||
|
@ -104,13 +104,4 @@ private:
|
|||||||
static ResultVal<SharedPtr<ServerSession>> Create(std::string name = "Unknown");
|
static ResultVal<SharedPtr<ServerSession>> Create(std::string name = "Unknown");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs command buffer translation for an HLE IPC request.
|
|
||||||
* The command buffer from the ServerSession thread's TLS is copied into a
|
|
||||||
* buffer and all descriptors in the buffer are processed.
|
|
||||||
* TODO(Subv): Implement this function, currently we do not support multiple processes running at
|
|
||||||
* once, but once that is implemented we'll need to properly translate all descriptors
|
|
||||||
* in the command buffer.
|
|
||||||
*/
|
|
||||||
ResultCode TranslateHLERequest(ServerSession* server_session);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user