Change FSI behavior for 4.10
Latest FSI code changes paths and endianness, so we need to update
Targeting and flip the CFAM data endian when necessary.
Also update the test case to use the new 4.10 path style.
Change-Id: I35cdedf4b9723ee0f8291d0abf4467dbfd99b334
Signed-off-by: Edward A. James <eajames@us.ibm.com>
diff --git a/cfam_access.cpp b/cfam_access.cpp
index 25b811c..83afdc7 100644
--- a/cfam_access.cpp
+++ b/cfam_access.cpp
@@ -55,6 +55,8 @@
throw std::runtime_error(msg);
}
+ data = target->swapEndian(data);
+
rc = write(target->getCFAMFD(), &data, cfamRegSize);
if (rc < 0)
{
@@ -95,7 +97,7 @@
throw std::runtime_error(msg);
}
- return data;
+ return target->swapEndian(data);
}