mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 19:37:06 +00:00
gdb: YACC (yet another cleanup commit)
This commit is contained in:
parent
f30d832847
commit
e720e4a87b
9 changed files with 62 additions and 54 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue