ruby: convert block size, memory size to unsigned

This commit is contained in:
Nilay Vaish 2013-02-10 21:43:07 -06:00
parent 5e33045a2a
commit 221d39284e
3 changed files with 13 additions and 13 deletions

View file

@ -37,7 +37,7 @@ class RubySystem(ClockedObject):
randomization = Param.Bool(False, randomization = Param.Bool(False,
"insert random delays on message enqueue times"); "insert random delays on message enqueue times");
clock = '1GHz' clock = '1GHz'
block_size_bytes = Param.Int(64, block_size_bytes = Param.UInt32(64,
"default cache block size; must be a power of two"); "default cache block size; must be a power of two");
mem_size = Param.MemorySize("total memory size of the system"); mem_size = Param.MemorySize("total memory size of the system");
stats_filename = Param.String("ruby.stats", stats_filename = Param.String("ruby.stats",

View file

@ -46,10 +46,10 @@ using namespace std;
int RubySystem::m_random_seed; int RubySystem::m_random_seed;
bool RubySystem::m_randomization; bool RubySystem::m_randomization;
int RubySystem::m_block_size_bytes; uint32_t RubySystem::m_block_size_bytes;
int RubySystem::m_block_size_bits; uint32_t RubySystem::m_block_size_bits;
uint64 RubySystem::m_memory_size_bytes; uint64_t RubySystem::m_memory_size_bytes;
int RubySystem::m_memory_size_bits; uint32_t RubySystem::m_memory_size_bits;
RubySystem::RubySystem(const Params *p) RubySystem::RubySystem(const Params *p)
: ClockedObject(p) : ClockedObject(p)

View file

@ -75,10 +75,10 @@ class RubySystem : public ClockedObject
// config accessors // config accessors
static int getRandomSeed() { return m_random_seed; } static int getRandomSeed() { return m_random_seed; }
static int getRandomization() { return m_randomization; } static int getRandomization() { return m_randomization; }
static int getBlockSizeBytes() { return m_block_size_bytes; } static uint32_t getBlockSizeBytes() { return m_block_size_bytes; }
static int getBlockSizeBits() { return m_block_size_bits; } static uint32_t getBlockSizeBits() { return m_block_size_bits; }
static uint64 getMemorySizeBytes() { return m_memory_size_bytes; } static uint64_t getMemorySizeBytes() { return m_memory_size_bytes; }
static int getMemorySizeBits() { return m_memory_size_bits; } static uint32_t getMemorySizeBits() { return m_memory_size_bits; }
Cycles getTime() const { return curCycle(); } Cycles getTime() const { return curCycle(); }
// Public Methods // Public Methods
@ -147,10 +147,10 @@ class RubySystem : public ClockedObject
// configuration parameters // configuration parameters
static int m_random_seed; static int m_random_seed;
static bool m_randomization; static bool m_randomization;
static int m_block_size_bytes; static uint32_t m_block_size_bytes;
static int m_block_size_bits; static uint32_t m_block_size_bits;
static uint64 m_memory_size_bytes; static uint64_t m_memory_size_bytes;
static int m_memory_size_bits; static uint32_t m_memory_size_bits;
Network* m_network_ptr; Network* m_network_ptr;
std::vector<MemoryControl *> m_memory_controller_vec; std::vector<MemoryControl *> m_memory_controller_vec;