diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-05-23 13:37:22 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-05-23 13:37:22 +0100 |
commit | 5435f25ec80ff691c4e42e06888c60a01848a31d (patch) | |
tree | b20c15abae2917f347691c75e7259484f29f5895 /src/cpu/kvm | |
parent | ed447bbff97eb74779ff891734664ef16d4fe646 (diff) | |
download | gem5-5435f25ec80ff691c4e42e06888c60a01848a31d.tar.xz |
kvm: Fix dumping code for large registers
The register dumping code in kvm tries to print the bytes in large
registers (128 bits and larger) instead of printing them as hex. This
changeset fixes that.
Diffstat (limited to 'src/cpu/kvm')
-rw-r--r-- | src/cpu/kvm/base.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc index e09c4b7f2..abb3451f6 100644 --- a/src/cpu/kvm/base.cc +++ b/src/cpu/kvm/base.cc @@ -816,14 +816,14 @@ BaseKvmCPU::getAndFormatOneReg(uint64_t id) const ss << value; \ } break -#define HANDLE_ARRAY(len) \ - case KVM_REG_SIZE_U ## len: { \ - uint8_t value[len / 8]; \ - getOneReg(id, value); \ - ss << "[" << value[0]; \ - for (int i = 1; i < len / 8; ++i) \ - ss << ", " << value[i]; \ - ss << "]"; \ +#define HANDLE_ARRAY(len) \ + case KVM_REG_SIZE_U ## len: { \ + uint8_t value[len / 8]; \ + getOneReg(id, value); \ + ccprintf(ss, "[0x%x", value[0]); \ + for (int i = 1; i < len / 8; ++i) \ + ccprintf(ss, ", 0x%x", value[i]); \ + ccprintf(ss, "]"); \ } break switch (id & KVM_REG_SIZE_MASK) { |