mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
drc related bugfixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@822 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
65c75cb07d
commit
7f5a3fc12a
3 changed files with 10 additions and 7 deletions
|
@ -641,6 +641,9 @@ int sh2_drc_init(SH2 *sh2)
|
|||
{
|
||||
if (block_tables[0] == NULL) {
|
||||
int i, cnt;
|
||||
|
||||
drc_cmn_init();
|
||||
|
||||
cnt = block_max_counts[0] + block_max_counts[1] + block_max_counts[2];
|
||||
block_tables[0] = calloc(cnt, sizeof(*block_tables[0]));
|
||||
if (block_tables[0] == NULL)
|
||||
|
@ -680,6 +683,8 @@ void sh2_drc_finish(SH2 *sh2)
|
|||
#endif
|
||||
free(block_tables[0]);
|
||||
memset(block_tables, 0, sizeof(block_tables));
|
||||
|
||||
drc_cmn_cleanup();
|
||||
}
|
||||
|
||||
if (hash_table != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue