Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions hls-fix-uninitialized.patch
Original file line number Diff line number Diff line change
@@ -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();
}
2 changes: 2 additions & 0 deletions hls.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down