summaryrefslogtreecommitdiff
path: root/libpcsxcore/pgxp_gte.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/pgxp_gte.c')
-rw-r--r--libpcsxcore/pgxp_gte.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpcsxcore/pgxp_gte.c b/libpcsxcore/pgxp_gte.c
index de5f7a37..2ab36d12 100644
--- a/libpcsxcore/pgxp_gte.c
+++ b/libpcsxcore/pgxp_gte.c
@@ -44,7 +44,11 @@ PGXP_value GTE_ctrl_reg_mem[32];
PGXP_value* GTE_data_reg = GTE_data_reg_mem;
PGXP_value* GTE_ctrl_reg = GTE_ctrl_reg_mem;
-
+void PGXP_InitGTE()
+{
+ memset(GTE_data_reg_mem, 0, sizeof(GTE_data_reg_mem));
+ memset(GTE_ctrl_reg_mem, 0, sizeof(GTE_ctrl_reg_mem));
+}
// Instruction register decoding
#define op(_instr) (_instr >> 26) // The op part of the instruction register