Build and Install tool chain
git clone git@github.com:riscv-collab/riscv-gnu-toolchain.git
cd riscv-gnu-toolchain
# checkout to a stabler commit
git checkout 2024.03.01
# opt/riscv is the install path
./configure --prefix=/opt/riscv
open source project
spike-vp
Use spike and VCML to build a SystemC virtual platform.
https://github.com/TommyWu-fdgkhdkgh/spike-vp
glog
[Accepted] https://github.com/google/glog/commit/18836106d1fe6893c5cf3db1682b6916fdd4f34c
-- this patch make glog 50% faster in specific situaltion
-- thank ᴀᴇsᴏᴘʜᴏʀ for advice.
contributed by < fdgkhdkgh >
第二週隨堂測驗題
解釋上述程式碼運作原理
/* This returns the same value that is passed as ptr.
* Progress condition: wait-free population oblivious.
*/
uintptr_t list_hp_protect_ptr(list_hp_t *hp, int ihp, uintptr_t ptr)
{