Skip to content

Commit

Permalink
GdbServer: Pass through FCW
Browse files Browse the repository at this point in the history
We have supported this for a while, just wasn't passed through gdbserver
since it usually doesn't matter.
  • Loading branch information
Sonicadvance1 committed Nov 24, 2024
1 parent f45a3f6 commit 93e9e59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Tools/LinuxEmulation/LinuxSyscalls/GdbServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ GdbServer::HandledPacketType GdbServer::readReg(const fextl::string& packet) {
return {encodeHex((unsigned char*)(&state.mm[(addr - offsetof(GDBContextDefinition, mm[0])) / sizeof(X80Float)]), sizeof(X80Float)),
HandledPacketType::TYPE_ACK};
} else if (addr == offsetof(GDBContextDefinition, fctrl)) {
// XXX: We don't support this yet
uint32_t FCW = 0x37F;
uint32_t FCW = state.FCW;
return {encodeHex((unsigned char*)(&FCW), sizeof(uint32_t)), HandledPacketType::TYPE_ACK};
} else if (addr == offsetof(GDBContextDefinition, fstat)) {
uint32_t FSW {};
Expand Down

0 comments on commit 93e9e59

Please sign in to comment.