| 107 | } |
| 108 | |
| 109 | static void |
| 110 | copyThreadRegisters(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 | |
| 124 | static void |
| 125 | copyContextRegisters(CafeThread &info, const decaf::debug::CpuContext *context) |