mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fix incomplete init
This commit is contained in:
parent
f3d1e1e63f
commit
cd0ace2832
4 changed files with 15 additions and 4 deletions
|
@ -17,10 +17,15 @@
|
|||
int sh2_init(SH2 *sh2, int is_slave, SH2 *other_sh2)
|
||||
{
|
||||
int ret = 0;
|
||||
unsigned int mult_m68k_to_sh2 = sh2->mult_m68k_to_sh2;
|
||||
unsigned int mult_sh2_to_m68k = sh2->mult_sh2_to_m68k;
|
||||
|
||||
memset(sh2, 0, offsetof(SH2, mult_m68k_to_sh2));
|
||||
memset(sh2, 0, sizeof(*sh2));
|
||||
sh2->is_slave = is_slave;
|
||||
sh2->other_sh2 = other_sh2;
|
||||
sh2->mult_m68k_to_sh2 = mult_m68k_to_sh2;
|
||||
sh2->mult_sh2_to_m68k = mult_sh2_to_m68k;
|
||||
|
||||
pdb_register_cpu(sh2, PDBCT_SH2, is_slave ? "ssh2" : "msh2");
|
||||
#ifdef DRC_SH2
|
||||
ret = sh2_drc_init(sh2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue