diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-31 09:44:20 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-31 09:44:20 -0600 |
commit | 6aed4d4f931f0eca15d1211e7e28a06d66f16d32 (patch) | |
tree | 9403aa34b2adbb83ae9eb04f86fd062deaa53ebe /src/sim/core.cc | |
parent | a4288dabf9e0154757bc092a8917cbaf85be9150 (diff) | |
download | gem5-6aed4d4f931f0eca15d1211e7e28a06d66f16d32.tar.xz |
ruby: correct computation of number of bits required for address
The number of bits required for an address was set to floorLog2(memory size).
This is correct under the assumption that the memory size is a power of 2,
which is not always true. Hence, floorLog2 is being replaced with ceilLog2.
Diffstat (limited to 'src/sim/core.cc')
0 files changed, 0 insertions, 0 deletions