diff --git a/hls-fix-uninitialized.patch b/hls-fix-uninitialized.patch new file mode 100644 index 00000000000..90b00863246 --- /dev/null +++ b/hls-fix-uninitialized.patch @@ -0,0 +1,19 @@ +--- a/include/etc/ap_private.h 2022-05-16 15:05:19.000000000 +0200 ++++ b/include/etc/ap_private.h 2023-11-23 14:53:55.052958667 +0100 +@@ -1590,7 +1590,7 @@ + } + + public: +- INLINE ap_private() { ++ INLINE ap_private(): VAL(0) { + set_canary(); + clearUnusedBits(); + check_canary(); +@@ -3302,6 +3302,7 @@ + /// for object deserialization (pair this with the static method Read). + INLINE ap_private() { + set_canary(); ++ memset(pVal, 0, _AP_N * sizeof(uint64_t)); + clearUnusedBits(); + check_canary(); + } diff --git a/hls.spec b/hls.spec index 0c55692130b..e609e8e4c5a 100644 --- a/hls.spec +++ b/hls.spec @@ -4,10 +4,12 @@ %define github_user Xilinx %define runpath_opts -m examples Source: git+https://github.com/%{github_user}/HLS_arbitrary_Precision_Types.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz +Patch0: hls-fix-uninitialized Requires: gmake %prep %setup -n %{n}-%{realversion} +%patch0 -p1 %build