Files
yosys/libs/fst/00_PATCH_i386_endian.patch

15 lines
634 B
Diff
Raw Permalink Normal View History

2025-03-20 14:23:37 +13:00
--- fstapi.cc
+++ fstapi.cc
@@ -4723,7 +4723,10 @@ if(gzread_pass_status)
2025-05-12 10:21:06 +12:00
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
2025-03-20 14:23:37 +13:00
2025-05-12 10:21:06 +12:00
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
{