X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fcompiler.c;h=9368b5832f1c512a7237096f5e11bafb2f4538f7;hb=7f5a3fc12a778ff161ebf3f379ccc3127de4ef29;hp=4dd74e8db187587c3f450c288da40adcb32c2f34;hpb=65c75cb07df9d27905dd166b876d5b6461cb656d;p=picodrive.git diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 4dd74e8..9368b58 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -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) {