diff --git a/src/runtime/hexagon/hexagon_buffer.cc b/src/runtime/hexagon/hexagon_buffer.cc index cd3fd8f971e8..0fc71d8ac29c 100644 --- a/src/runtime/hexagon/hexagon_buffer.cc +++ b/src/runtime/hexagon/hexagon_buffer.cc @@ -240,12 +240,8 @@ void hexagon_buffer_copy_across_regions(const BufferSet& dest, const BufferSet& // Finally, do the memory copies. for (const auto& copy : macro_copies) { -#if __HEXAGON_ARCH__ >= 68 int error_code = hexagon_user_dma_1d_sync(copy.dest, copy.src, copy.num_bytes); CHECK_EQ(error_code, 0); -#else - memcpy(copy.dest, copy.src, copy.num_bytes); -#endif } } diff --git a/src/runtime/hexagon/hexagon_device_api.cc b/src/runtime/hexagon/hexagon_device_api.cc index 4ff4fea92092..f22afca10bfa 100644 --- a/src/runtime/hexagon/hexagon_device_api.cc +++ b/src/runtime/hexagon/hexagon_device_api.cc @@ -170,12 +170,8 @@ TVM_REGISTER_GLOBAL("device_api.hexagon.mem_copy").set_body([](TVMArgs args, TVM void* src = args[1]; int size = args[2]; -#if __HEXAGON_ARCH__ >= 68 int error_code = hexagon_user_dma_1d_sync(dst, src, size); CHECK_EQ(error_code, 0); -#else - memcpy(dst, src, size); -#endif *rv = static_cast(0); }); diff --git a/tests/cpp-runtime/hexagon/hexagon_user_dma_tests.cc b/tests/cpp-runtime/hexagon/hexagon_user_dma_tests.cc index 2fc1017f379e..359845f15954 100644 --- a/tests/cpp-runtime/hexagon/hexagon_user_dma_tests.cc +++ b/tests/cpp-runtime/hexagon/hexagon_user_dma_tests.cc @@ -110,7 +110,8 @@ TEST_F(HexagonUserDMATest, async_dma_poll) { } // poll until at least 1 DMA is complete - while (HexagonUserDMA::Get().Poll() == 10) {}; + while (HexagonUserDMA::Get().Poll() == 10) { + }; // verify for (uint32_t i = 0; i < length; ++i) {