diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-06-05 15:59:27 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-09-28 11:53:42 +0200 |
commit | c078cedb6229e7aca6e9dc7e3cda1302eb3951f4 (patch) | |
tree | 9abd34d477df02800f20d4ed51f0457eda516d65 /applications/message_handler_openamp/main.cpp | |
parent | 67add21188c70240b8966cdd707b03c02bd41a56 (diff) | |
download | ethos-u-core-platform-c078cedb6229e7aca6e9dc7e3cda1302eb3951f4.tar.gz |
Remove address translation for buffer and carveout
Address translation for inference buffers and carveout areas have been
removed because the Linux Kernel NPU driver now provides device
addresses for them.
Change-Id: I71a133ba5ecbb94aa2c225d259e75229b6dbce5b
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'applications/message_handler_openamp/main.cpp')
-rw-r--r-- | applications/message_handler_openamp/main.cpp | 4 |
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, |