diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2011-11-28 04:34:18 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2011-11-28 04:34:18 -0500 |
commit | 64ccfecf9579abbe553ed1825dcaead9a3daa34f (patch) | |
tree | 72f6fb7e5e70ab684ade378a12c3bc75ffba1e2a | |
parent | 0e621fd1367e431fd5af55693d45925fa6144146 (diff) | |
download | gem5-64ccfecf9579abbe553ed1825dcaead9a3daa34f.tar.xz |
SPARC: Fixing a minor copy-paste bug using the wrong variable
There was a bug in the mm_disk implementation where a copy paste error
resulted in the d32 variable not being initialised (as it incorrectly
was used instead of d16), and gcc 4.5 complaining.
--HG--
extra : rebase_source : 9515e87b188b9eac189da8034cb13c3bf7d9e20b
-rw-r--r-- | src/dev/sparc/mm_disk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/sparc/mm_disk.cc b/src/dev/sparc/mm_disk.cc index b86905387..1921f6d96 100644 --- a/src/dev/sparc/mm_disk.cc +++ b/src/dev/sparc/mm_disk.cc @@ -83,7 +83,7 @@ MmDisk::read(PacketPtr pkt) break; case sizeof(uint16_t): memcpy(&d16, diskData + (accessAddr % SectorSize), 2); - pkt->set(htobe(d32)); + pkt->set(htobe(d16)); DPRINTF(IdeDisk, "reading word %#x value= %#x\n", accessAddr, d16); break; case sizeof(uint32_t): |