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_gte.c | |
| parent | 6b78a14b0e466ff870aa042185c67539a8c51324 (diff) | |
| download | pcsxr-485432c1988ab203ca85cd122f03118dcc2d9f8d.tar.gz | |
Initialise GTE and CPU regsiters (invalidate)
Diffstat (limited to 'libpcsxcore/pgxp_gte.c')
| -rw-r--r-- | libpcsxcore/pgxp_gte.c | 6 |
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
|
