MCPcopy Create free account
hub / github.com/decaf-emu/decaf-emu / copyThreadRegisters

Function copyThreadRegisters

src/libdecaf/src/debug_api/debug_api_cafe.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static void
110copyThreadRegisters(CafeThread &info, virt_ptr<cafe::coreinit::OSThread> thread)
111{
112 info.cia = thread->context.cia;
113 info.nia = thread->context.nia;
114 info.gpr = thread->context.gpr;
115 info.fpr = thread->context.fpr;
116 info.ps1 = thread->context.psf;
117 info.cr = thread->context.cr;
118 info.xer = thread->context.xer;
119 info.lr = thread->context.lr;
120 info.ctr = thread->context.ctr;
121 info.msr = 0u;
122}
123
124static void
125copyContextRegisters(CafeThread &info, const decaf::debug::CpuContext *context)

Callers 1

sampleCafeThreadsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected