Fixed 64-bit register reading.
authorFlorian Pose <fp@igh-essen.com>
Wed, 08 Apr 2009 14:49:36 +0000
changeset 1390 7e600a39a91b
parent 1389 5b392b22a2da
child 1391 9a547310f8d8
Fixed 64-bit register reading.
tool/CommandRegRead.cpp
--- a/tool/CommandRegRead.cpp	Wed Apr 08 14:10:34 2009 +0000
+++ b/tool/CommandRegRead.cpp	Wed Apr 08 14:49:36 2009 +0000
@@ -188,7 +188,7 @@
         unsigned int uval = le32_to_cpup(data.data);
         cout << uval << " 0x" << hex << setw(8) << uval << endl;
     } else if (dataType->name == "uint64") {
-        long long unsigned int uval = le32_to_cpup(data.data);
+        long long unsigned int uval = le64_to_cpup(data.data);
         cout << uval << " 0x" << hex << setw(8) << uval << endl;
     } else { // raw
         uint8_t *d = data.data;