Skip to content

Commit

Permalink
pod from pod vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mrutt92 committed Sep 7, 2021
1 parent b1c0cad commit c3816d3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions software/bsg_manycore_lib/bsg_printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,11 @@ int bsg_printf(const char *fmt, ...)
// calculate global_x/y
int global_x = __bsg_x + __bsg_grp_org_x;
int global_y = __bsg_y + __bsg_grp_org_y;

// todo: calculate pod from origin register?
int px = 0;
int py = 0;

//__mtx_lcl_as_glbl_p = (bsg_mcs_mutex_node_t*)bsg_tile_group_remote_ptr(int, __bsg_x, __bsg_y, &__mtx_lcl);
__mtx_lcl_as_glbl_p = (bsg_mcs_mutex_node_t*)bsg_global_pod_ptr(px,py,global_x,global_y,&__mtx_lcl);
//__mtx_lcl_as_glbl_p = (bsg_mcs_mutex_node_t*)bsg_global_ptr(global_x,global_y,&__mtx_lcl);
//__mtx_lcl_as_glbl_p = (bsg_mcs_mutex_node_t*)bsg_global_pod_ptr(px,py,__bsg_x,__bsg_y,&__mtx_lcl);
__mtx_lcl_as_glbl_p = (bsg_mcs_mutex_node_t*)bsg_global_pod_ptr(__bsg_pod_x
,__bsg_pod_y
,global_x
,global_y
,&__mtx_lcl);
}

va_start(args, fmt);
Expand Down

0 comments on commit c3816d3

Please sign in to comment.