From 485432c1988ab203ca85cd122f03118dcc2d9f8d Mon Sep 17 00:00:00 2001 From: iCatButler Date: Thu, 30 Jun 2016 11:49:11 +0100 Subject: Initialise GTE and CPU regsiters (invalidate) --- libpcsxcore/pgxp_mem.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libpcsxcore/pgxp_mem.c') 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; -- cgit v1.2.3