mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
libs/fst: Update upstream
libfst is no longer included in gtkwave and instead has its own repo. There has also been some refactoring, so the patches need to update to match, as does sim.cc.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
--- fstapi.cc
|
||||
+++ fstapi.cc
|
||||
@@ -4723,7 +4723,10 @@ if(gzread_pass_status)
|
||||
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
|
||||
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 {
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user