Fixed 64-bit register reading.

This commit is contained in:
Florian Pose 2009-04-08 14:49:36 +00:00
parent 2a21a925a6
commit 29a51d8408
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ void CommandRegRead::execute(MasterDevice &m, const StringVector &args)
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;