pulp-platform / snitch_cluster

An energy-efficient RISC-V floating-point compute cluster.
https://pulp-platform.github.io/snitch_cluster/
Apache License 2.0
52 stars 55 forks source link

Hardcoded barrier CSR address #59

Open colluca opened 1 year ago

colluca commented 1 year ago

Do not hardcode barrier CSR address, but get it from riscv-opcodes encoding.h.

https://github.com/pulp-platform/snitch_cluster/blob/8a020debbe58f0fe9411039a31fbfdebd6af5302/sw/snRuntime/src/sync.h#L57-L60