diff options
| author | DrChat <arkolbed@gmail.com> | 2018-02-14 16:22:14 -0600 |
|---|---|---|
| committer | DrChat <arkolbed@gmail.com> | 2018-02-14 16:22:14 -0600 |
| commit | 1de598e4cea07c4c933df4a20a072eeb5275c2d2 (patch) | |
| tree | 784b2735e0305a7271bf04f0c6002b737a772858 | |
| parent | 7818cdab60c571f162b8bb752a1e817b1db108f2 (diff) | |
[JIT] Comment the offsets in PPCContext
| -rw-r--r-- | src/xenia/cpu/ppc/ppc_context.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/xenia/cpu/ppc/ppc_context.h b/src/xenia/cpu/ppc/ppc_context.h index 9c96daa6b..2732fdc41 100644 --- a/src/xenia/cpu/ppc/ppc_context.h +++ b/src/xenia/cpu/ppc/ppc_context.h @@ -249,22 +249,22 @@ enum class PPCRegister { typedef struct PPCContext_s { // Must be stored at 0x0 for now. // TODO(benvanik): find a nice way to describe this to the JIT. - ThreadState* thread_state; + ThreadState* thread_state; // 0x0 // TODO(benvanik): this is getting nasty. Must be here. - uint8_t* virtual_membase; + uint8_t* virtual_membase; // 0x8 // Most frequently used registers first. - uint64_t lr; // Link register - uint64_t ctr; // Count register - uint64_t r[32]; // General purpose registers - double f[32]; // Floating-point registers - vec128_t v[128]; // VMX128 vector registers + uint64_t lr; // 0x10 Link register + uint64_t ctr; // 0x18 Count register + uint64_t r[32]; // 0x20 General purpose registers + double f[32]; // 0x120 Floating-point registers + vec128_t v[128]; // 0x220 VMX128 vector registers // XER register: // Split to make it easier to do individual updates. - uint8_t xer_ca; - uint8_t xer_ov; - uint8_t xer_so; + uint8_t xer_ca; // 0xA20 + uint8_t xer_ov; // 0xA21 + uint8_t xer_so; // 0xA22 // Condition registers: // These are split to make it easier to do DCE on unused stores. @@ -279,7 +279,7 @@ typedef struct PPCContext_s { // successfully uint8_t cr0_so; // Summary Overflow (SO) - copy of XER[SO] }; - } cr0; + } cr0; // 0xA24 union { uint32_t value; struct { |
