changeset 9515e87b188b in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=9515e87b188b
description:
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.
diffstat:
src/dev/sparc/mm_disk.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 643e35415075 -r 9515e87b188b src/dev/sparc/mm_disk.cc
--- a/src/dev/sparc/mm_disk.cc Mon Nov 28 04:19:57 2011 -0500
+++ b/src/dev/sparc/mm_disk.cc Mon Nov 28 04:34:18 2011 -0500
@@ -83,7 +83,7 @@
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):
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev