diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-10-15 12:51:21 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-10-15 12:51:21 -0400 |
commit | b6bd4f34b4a20ac158af610b71aaa24ac86b1ef6 (patch) | |
tree | 496e845d2a9ef3bea8b7ea355eb8c0d8cc0d301a /src/mem | |
parent | 2a740aa09682c32eb8f1f8880f279c943d8c6ee1 (diff) | |
download | gem5-b6bd4f34b4a20ac158af610b71aaa24ac86b1ef6.tar.xz |
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 (limited to 'src/mem')
-rw-r--r-- | src/mem/bus.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/bus.cc b/src/mem/bus.cc index 274b8c258..a0db6e52a 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -100,8 +100,8 @@ BaseBus::init() 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"); } |