aboutsummaryrefslogtreecommitdiff
path: root/applications/message_handler_openamp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/message_handler_openamp/main.cpp')
-rw-r--r--applications/message_handler_openamp/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/message_handler_openamp/main.cpp b/applications/message_handler_openamp/main.cpp
index 62bdc97..c120610 100644
--- a/applications/message_handler_openamp/main.cpp
+++ b/applications/message_handler_openamp/main.cpp
@@ -179,14 +179,14 @@ int main() {
auto messageHandler = std::make_shared<MessageHandler>(*rproc, "ethos-u-0.0");
printf("TFLM arena. pa=%" PRIx32 ", da=%" PRIx32 ", len=%" PRIx32 "\n",
- resourceTable.carveout.da,
resourceTable.carveout.pa,
+ resourceTable.carveout.da,
resourceTable.carveout.len);
std::array<std::shared_ptr<InferenceRunner>, NUM_PARALLEL_TASKS> inferenceRunner;
for (size_t i = 0; i < NUM_PARALLEL_TASKS; i++) {
- auto tensorArena = static_cast<uint8_t *>(messageHandler->physicalToVirtual(resourceTable.carveout.pa));
+ auto tensorArena = reinterpret_cast<uint8_t *>(resourceTable.carveout.da);
inferenceRunner[i] = std::make_shared<InferenceRunner>(&tensorArena[arenaSize * i],
arenaSize,