mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-11-04 06:47:09 +00:00 
			
		
		
		
	PPC context header adjustments. (#123)
This commit is contained in:
		@@ -123,21 +123,18 @@ struct PPCFuncMapping
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
extern PPCFuncMapping PPCFuncMappings[];
 | 
					extern PPCFuncMapping PPCFuncMappings[];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct PPCRegister
 | 
					union PPCRegister
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    union
 | 
					    int8_t s8;
 | 
				
			||||||
    {
 | 
					    uint8_t u8;
 | 
				
			||||||
        int8_t s8;
 | 
					    int16_t s16;
 | 
				
			||||||
        uint8_t u8;
 | 
					    uint16_t u16;
 | 
				
			||||||
        int16_t s16;
 | 
					    int32_t s32;
 | 
				
			||||||
        uint16_t u16;
 | 
					    uint32_t u32;
 | 
				
			||||||
        int32_t s32;
 | 
					    int64_t s64;
 | 
				
			||||||
        uint32_t u32;
 | 
					    uint64_t u64;
 | 
				
			||||||
        int64_t s64;
 | 
					    float f32;
 | 
				
			||||||
        uint64_t u64;
 | 
					    double f64;
 | 
				
			||||||
        float f32;
 | 
					 | 
				
			||||||
        double f64;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct PPCXERRegister
 | 
					struct PPCXERRegister
 | 
				
			||||||
@@ -194,21 +191,18 @@ struct PPCCRRegister
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct alignas(0x10) PPCVRegister
 | 
					union alignas(0x10) PPCVRegister
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    union
 | 
					    int8_t s8[16];
 | 
				
			||||||
    {
 | 
					    uint8_t u8[16];
 | 
				
			||||||
        int8_t s8[16];
 | 
					    int16_t s16[8];
 | 
				
			||||||
        uint8_t u8[16];
 | 
					    uint16_t u16[8];
 | 
				
			||||||
        int16_t s16[8];
 | 
					    int32_t s32[4];
 | 
				
			||||||
        uint16_t u16[8];
 | 
					    uint32_t u32[4];
 | 
				
			||||||
        int32_t s32[4];
 | 
					    int64_t s64[2];
 | 
				
			||||||
        uint32_t u32[4];
 | 
					    uint64_t u64[2];
 | 
				
			||||||
        int64_t s64[2];
 | 
					    float f32[4];
 | 
				
			||||||
        uint64_t u64[2];
 | 
					    double f64[2];
 | 
				
			||||||
        float f32[4];
 | 
					 | 
				
			||||||
        double f64[2];
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define PPC_ROUND_NEAREST 0x00
 | 
					#define PPC_ROUND_NEAREST 0x00
 | 
				
			||||||
@@ -270,7 +264,7 @@ struct PPCFPSCRRegister
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct PPCContext
 | 
					struct alignas(0x40) PPCContext
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    PPCRegister r3;
 | 
					    PPCRegister r3;
 | 
				
			||||||
#ifndef PPC_CONFIG_NON_ARGUMENT_AS_LOCAL
 | 
					#ifndef PPC_CONFIG_NON_ARGUMENT_AS_LOCAL
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user