Skip to content

Commit

Permalink
Fix a bug in gemmini malloc (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuhu17 authored Nov 11, 2024
1 parent 3d02a16 commit 544a932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/gemmini/src/platform/gemm_acc_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ uint32_t gemm_acc_malloc(long unsigned int size) {
if (i > 0) {
loc = ACC_BLOCKS[i - 1].loc + ACC_BLOCKS[i - 1].size;
}

ACC_BLOCKS[i].size = size;
ACC_BLOCKS[i].loc = 0;
ACC_BLOCKS[i].loc = loc;
ACC_BLOCKS[i].is_used = 1;
gemm_acc_free_block = i + 1;

Expand Down

0 comments on commit 544a932

Please sign in to comment.