Download chips/yosys/libs/fst/00_PATCH_i386_endian.patch from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/libs/fst/00_PATCH_i386_endian.patch
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/libs/fst/00_PATCH_i386_endian.patch
-
curl -L -o 00_PATCH_i386_endian.patch https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/libs/fst/00_PATCH_i386_endian.patch
634 Bytes
| --- fstapi.cc | |
| +++ fstapi.cc | |
| if(gzread_pass_status) | |
| hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0); | |
| fstFread(&dcheck, 8, 1, xc->f); | |
| - xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST); | |
| + /* | |
| + * Yosys patch: Fix double endian check for i386 targets built in modern gcc | |
| + */ | |
| + xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST); | |
| if (!xc->double_endian_match) { | |
| union | |
| { | |