gdb: YACC (yet another cleanup commit)

This commit is contained in:
GreemDev 2025-10-23 19:11:58 -05:00 committed by KeatonTheBot
parent f30d832847
commit e720e4a87b
9 changed files with 62 additions and 54 deletions

View file

@ -8,7 +8,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
{
public const int Count64 = 68;
public const int Count32 = 66;
/*
FPCR = FPSR & ~FpcrMask
All of FPCR's bits are reserved in FPCR and vice versa,
@ -16,6 +16,8 @@ namespace Ryujinx.HLE.Debugger.Gdb
*/
private const uint FpcrMask = 0xfc1fffff;
#region 64-bit
public static string ReadRegister64(this IExecutionContext state, int registerId) =>
registerId switch
{
@ -74,6 +76,10 @@ namespace Ryujinx.HLE.Debugger.Gdb
}
}
#endregion
#region 32-bit
public static string ReadRegister32(this IExecutionContext state, int registerId)
{
switch (registerId)
@ -149,5 +155,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
return false;
}
}
#endregion
}
}