diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-06-30 11:49:11 +0100 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-06-30 11:49:11 +0100 |
| commit | 485432c1988ab203ca85cd122f03118dcc2d9f8d (patch) | |
| tree | 4d68b43dbe68cd9c733fd8a2800608951e976ef6 /libpcsxcore/pgxp_mem.c | |
| parent | 6b78a14b0e466ff870aa042185c67539a8c51324 (diff) | |
| download | pcsxr-485432c1988ab203ca85cd122f03118dcc2d9f8d.tar.gz | |
Initialise GTE and CPU regsiters (invalidate)
Diffstat (limited to 'libpcsxcore/pgxp_mem.c')
| -rw-r--r-- | libpcsxcore/pgxp_mem.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libpcsxcore/pgxp_mem.c b/libpcsxcore/pgxp_mem.c index 6aa3f1f2..c3fdc9eb 100644 --- a/libpcsxcore/pgxp_mem.c +++ b/libpcsxcore/pgxp_mem.c @@ -1,4 +1,6 @@ #include "pgxp_mem.h" +#include "pgxp_cpu.h" +#include "pgxp_gte.h" #include "pgxp_value.h" PGXP_value Mem[3 * 2048 * 1024 / 4]; // mirror 2MB in 32-bit words * 3 @@ -7,11 +9,18 @@ const u32 ScratchOffset = 2048 * 1024 / 4; const u32 RegisterOffset = 2 * 2048 * 1024 / 4; const u32 InvalidAddress = 3 * 2048 * 1024 / 4; -void PGXP_Init() +void PGXP_InitMem() { memset(Mem, 0, sizeof(Mem)); } +void PGXP_Init() +{ + PGXP_InitMem(); + PGXP_InitCPU(); + PGXP_InitGTE(); +} + char* PGXP_GetMem() { return (char*)(Mem); // Config.PGXP_GTE ? (char*)(Mem) : NULL; |
