mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 10:55:51 +00:00
Fix #3898 (again)
This commit is contained in:
parent
39a1623ac0
commit
013206de39
3 changed files with 19 additions and 1 deletions
14
libs/fst/00_PATCH_i386_endian.patch
Normal file
14
libs/fst/00_PATCH_i386_endian.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- fstapi.cc
|
||||
+++ fstapi.cc
|
||||
@@ -4723,7 +4723,10 @@ 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 {
|
Loading…
Add table
Add a link
Reference in a new issue