File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1052,6 +1052,15 @@ int acl_kernel_if_post_pll_config_init(acl_kernel_if *kern) {
1052
1052
// Register addresses are pushed back since previous versions
1053
1053
// doesn't have the start register
1054
1054
kern->cra_address_offset = 0 ;
1055
+ } else {
1056
+ // else statement in case an old CSR version is queried before we program
1057
+ // our new aocx, it makes sure that the offset is set correctly when we
1058
+ // qeury the correct CSR aocx from the newly compile aocx. Old CSR
1059
+ // versions may be queried since users may trigger context creation
1060
+ // whenever they try to query device info which would lead to reading the
1061
+ // CSR before programming the actual aocx and it would read from the
1062
+ // defualt aocx provided by the BSP
1063
+ kern->cra_address_offset = 8 ;
1055
1064
}
1056
1065
} else {
1057
1066
kern->csr_version = 0 ;
You can’t perform that action at this time.
0 commit comments