mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 18:56:03 +00:00
thermosphere: fix gdb/regs.c assertions
This commit is contained in:
parent
3fe7c7537e
commit
63e3f40fa5
1 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
GDB_DECLARE_HANDLER(ReadRegisters)
|
GDB_DECLARE_HANDLER(ReadRegisters)
|
||||||
{
|
{
|
||||||
ENSURE(ctx->selectedThreadId == currentCoreCtx->coreId);
|
ENSURE(ctx->selectedThreadId == 1 + currentCoreCtx->coreId);
|
||||||
|
|
||||||
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
||||||
FpuRegisterCache *fpuRegCache = fpuReadRegisters();
|
FpuRegisterCache *fpuRegCache = fpuReadRegisters();
|
||||||
|
@ -52,7 +52,7 @@ GDB_DECLARE_HANDLER(ReadRegisters)
|
||||||
|
|
||||||
GDB_DECLARE_HANDLER(WriteRegisters)
|
GDB_DECLARE_HANDLER(WriteRegisters)
|
||||||
{
|
{
|
||||||
ENSURE(ctx->selectedThreadId == currentCoreCtx->coreId);
|
ENSURE(ctx->selectedThreadId == 1 + currentCoreCtx->coreId);
|
||||||
|
|
||||||
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
||||||
FpuRegisterCache *fpuRegCache = fpuGetRegisterCache();
|
FpuRegisterCache *fpuRegCache = fpuGetRegisterCache();
|
||||||
|
@ -138,7 +138,7 @@ static void GDB_GetRegisterPointerAndSize(size_t *outSz, void **outPtr, unsigned
|
||||||
|
|
||||||
GDB_DECLARE_HANDLER(ReadRegister)
|
GDB_DECLARE_HANDLER(ReadRegister)
|
||||||
{
|
{
|
||||||
ENSURE(ctx->selectedThreadId == currentCoreCtx->coreId);
|
ENSURE(ctx->selectedThreadId == 1 + currentCoreCtx->coreId);
|
||||||
|
|
||||||
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
||||||
FpuRegisterCache *fpuRegCache = NULL;
|
FpuRegisterCache *fpuRegCache = NULL;
|
||||||
|
@ -168,7 +168,7 @@ GDB_DECLARE_HANDLER(ReadRegister)
|
||||||
|
|
||||||
GDB_DECLARE_HANDLER(WriteRegister)
|
GDB_DECLARE_HANDLER(WriteRegister)
|
||||||
{
|
{
|
||||||
ENSURE(ctx->selectedThreadId == currentCoreCtx->coreId);
|
ENSURE(ctx->selectedThreadId == 1 + currentCoreCtx->coreId);
|
||||||
|
|
||||||
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
ExceptionStackFrame *frame = currentCoreCtx->guestFrame;
|
||||||
FpuRegisterCache *fpuRegCache = fpuGetRegisterCache();
|
FpuRegisterCache *fpuRegCache = fpuGetRegisterCache();
|
||||||
|
|
Loading…
Reference in a new issue