Skip to content

Commit

Permalink
allow base address 0x0 in profiling (Xilinx#2983)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackwa authored Mar 9, 2020
1 parent cb02d6d commit 4471e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/xdp/profile/plugin/ocl/xocl_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ isAPCtrlChain(key k, const std::string& cu)
auto binary_data = binary.binary_data();
auto header = reinterpret_cast<const xclBin *>(binary_data.first);
auto ip_layout = getAxlfSection<const ::ip_layout>(header, axlf_section_kind::IP_LAYOUT);
if (!ip_layout || !base_addr)
if (!ip_layout)
return false;
for (int32_t count=0; count <ip_layout->m_count; ++count) {
const auto& ip_data = ip_layout->m_ip_data[count];
Expand Down

0 comments on commit 4471e49

Please sign in to comment.