Buildfix for PS3

This commit is contained in:
twinaphex 2017-08-14 07:04:58 +02:00
parent 5dab432b0d
commit c647d03003
6 changed files with 33 additions and 46 deletions

View File

@ -34,9 +34,6 @@ extern "C" {
#include "pgxp_types.h"
struct PGXP_value_Tag;
typedef struct PGXP_value_Tag PGXP_value;
extern PGXP_value* CPU_reg;
extern PGXP_value* CP0_reg;
#define CPU_Hi CPU_reg[33]
@ -127,4 +124,4 @@ void PGXP_CP0_RFE(u32 instr);
}
#endif
#endif //_PGXP_CPU_H_
#endif //_PGXP_CPU_H_

View File

@ -46,9 +46,6 @@ extern "C" {
//struct OGLVertexTag;
//typedef struct OGLVertexTag OGLVertex;
struct PGXP_value_Tag;
typedef struct PGXP_value_Tag PGXP_value;
void PGXP_WriteFIFO(PGXP_value* pV, u32 pos);
PGXP_value* PGXP_ReadFIFO(u32 pos);
void PGXP_WriteCB(PGXP_value* pV, u32 pos);

View File

@ -33,12 +33,8 @@
extern "C" {
#endif
#include "pgxp_types.h"
struct PGXP_value_Tag;
typedef struct PGXP_value_Tag PGXP_value;
extern PGXP_value* GTE_data_reg;
extern PGXP_value* GTE_ctrl_reg;

View File

@ -35,25 +35,22 @@ extern "C" {
#include "pgxp_types.h"
void PGXP_InitMem(void);
void PGXP_InitMem(void);
char* PGXP_GetMem(); // return pointer to precision memory
u32 PGXP_ConvertAddress(u32 addr);
char* PGXP_GetMem(); // return pointer to precision memory
u32 PGXP_ConvertAddress(u32 addr);
struct PGXP_value_Tag;
typedef struct PGXP_value_Tag PGXP_value;
PGXP_value* GetPtr(u32 addr);
PGXP_value* ReadMem(u32 addr);
PGXP_value* GetPtr(u32 addr);
PGXP_value* ReadMem(u32 addr);
void ValidateAndCopyMem(PGXP_value* dest, u32 addr, u32 value);
void ValidateAndCopyMem16(PGXP_value* dest, u32 addr, u32 value, int sign);
void ValidateAndCopyMem(PGXP_value* dest, u32 addr, u32 value);
void ValidateAndCopyMem16(PGXP_value* dest, u32 addr, u32 value, int sign);
void WriteMem(PGXP_value* value, u32 addr);
void WriteMem16(PGXP_value* src, u32 addr);
void WriteMem(PGXP_value* value, u32 addr);
void WriteMem16(PGXP_value* src, u32 addr);
void PGXP_SetLastDMA(u32 addr);
u32 PGXP_GetLastDMA();
void PGXP_SetLastDMA(u32 addr);
u32 PGXP_GetLastDMA();
#ifdef __cplusplus
}

View File

@ -15,4 +15,23 @@ typedef uint32_t u32;
typedef uint64_t u64;
typedef uintptr_t uptr;
#endif//_PGXP_TYPES_H_
typedef struct PGXP_value_Tag
{
float x;
float y;
float z;
union
{
unsigned int flags;
unsigned char compFlags[4];
unsigned short halfFlags[2];
};
unsigned int count;
unsigned int value;
unsigned short gFlags;
unsigned char lFlags;
unsigned char hFlags;
} PGXP_value;
#endif//_PGXP_TYPES_H_

View File

@ -36,7 +36,7 @@ extern "C" {
#include "pgxp_types.h"
typedef union {
#if defined(__BIGENDIAN__)
#if defined(MSB_FIRST)
struct { u8 h3, h2, h, l; } b;
struct { s8 h3, h2, h, l; } sb;
struct { u16 h, l; } w;
@ -51,25 +51,6 @@ extern "C" {
s32 sd;
} psx_value;
typedef struct PGXP_value_Tag
{
float x;
float y;
float z;
union
{
unsigned int flags;
unsigned char compFlags[4];
unsigned short halfFlags[2];
};
unsigned int count;
unsigned int value;
unsigned short gFlags;
unsigned char lFlags;
unsigned char hFlags;
} PGXP_value;
typedef enum
{
UNINITIALISED = 0,