changeset 0b9fcd304b58 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=0b9fcd304b58
description:
Mem: Fix incorrect logic in bus blocksize check
This patch fixes the logic in the blocksize check such that the
warning is printed if the size is not 16, 32, 64 or 128.
diffstat:
src/mem/bus.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 8fb03b13de02 -r 0b9fcd304b58 src/mem/bus.cc
--- a/src/mem/bus.cc Mon Oct 15 08:12:35 2012 -0400
+++ b/src/mem/bus.cc Mon Oct 15 12:51:21 2012 -0400
@@ -100,8 +100,8 @@
blockSize = peer_block_size;
// check if the block size is a value known to work
- if (blockSize != 16 || blockSize != 32 || blockSize != 64 ||
- blockSize != 128)
+ if (!(blockSize == 16 || blockSize == 32 || blockSize == 64 ||
+ blockSize == 128))
warn_once("Block size is neither 16, 32, 64 or 128 bytes.\n");
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev