changeset 5c6de9a7f8d8 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=5c6de9a7f8d8
description:
ruby: convert block size, memory size to unsigned
diffstat:
src/mem/ruby/system/RubySystem.py | 2 +-
src/mem/ruby/system/System.cc | 8 ++++----
src/mem/ruby/system/System.hh | 16 ++++++++--------
3 files changed, 13 insertions(+), 13 deletions(-)
diffs (63 lines):
diff -r 98ad73bdc579 -r 5c6de9a7f8d8 src/mem/ruby/system/RubySystem.py
--- a/src/mem/ruby/system/RubySystem.py Sun Feb 10 21:26:26 2013 -0600
+++ b/src/mem/ruby/system/RubySystem.py Sun Feb 10 21:43:07 2013 -0600
@@ -37,7 +37,7 @@
randomization = Param.Bool(False,
"insert random delays on message enqueue times");
clock = '1GHz'
- block_size_bytes = Param.Int(64,
+ block_size_bytes = Param.UInt32(64,
"default cache block size; must be a power of two");
mem_size = Param.MemorySize("total memory size of the system");
stats_filename = Param.String("ruby.stats",
diff -r 98ad73bdc579 -r 5c6de9a7f8d8 src/mem/ruby/system/System.cc
--- a/src/mem/ruby/system/System.cc Sun Feb 10 21:26:26 2013 -0600
+++ b/src/mem/ruby/system/System.cc Sun Feb 10 21:43:07 2013 -0600
@@ -46,10 +46,10 @@
int RubySystem::m_random_seed;
bool RubySystem::m_randomization;
-int RubySystem::m_block_size_bytes;
-int RubySystem::m_block_size_bits;
-uint64 RubySystem::m_memory_size_bytes;
-int RubySystem::m_memory_size_bits;
+uint32_t RubySystem::m_block_size_bytes;
+uint32_t RubySystem::m_block_size_bits;
+uint64_t RubySystem::m_memory_size_bytes;
+uint32_t RubySystem::m_memory_size_bits;
RubySystem::RubySystem(const Params *p)
: ClockedObject(p)
diff -r 98ad73bdc579 -r 5c6de9a7f8d8 src/mem/ruby/system/System.hh
--- a/src/mem/ruby/system/System.hh Sun Feb 10 21:26:26 2013 -0600
+++ b/src/mem/ruby/system/System.hh Sun Feb 10 21:43:07 2013 -0600
@@ -75,10 +75,10 @@
// config accessors
static int getRandomSeed() { return m_random_seed; }
static int getRandomization() { return m_randomization; }
- static int getBlockSizeBytes() { return m_block_size_bytes; }
- static int getBlockSizeBits() { return m_block_size_bits; }
- static uint64 getMemorySizeBytes() { return m_memory_size_bytes; }
- static int getMemorySizeBits() { return m_memory_size_bits; }
+ static uint32_t getBlockSizeBytes() { return m_block_size_bytes; }
+ static uint32_t getBlockSizeBits() { return m_block_size_bits; }
+ static uint64_t getMemorySizeBytes() { return m_memory_size_bytes; }
+ static uint32_t getMemorySizeBits() { return m_memory_size_bits; }
Cycles getTime() const { return curCycle(); }
// Public Methods
@@ -147,10 +147,10 @@
// configuration parameters
static int m_random_seed;
static bool m_randomization;
- static int m_block_size_bytes;
- static int m_block_size_bits;
- static uint64 m_memory_size_bytes;
- static int m_memory_size_bits;
+ static uint32_t m_block_size_bytes;
+ static uint32_t m_block_size_bits;
+ static uint64_t m_memory_size_bytes;
+ static uint32_t m_memory_size_bits;
Network* m_network_ptr;
std::vector<MemoryControl *> m_memory_controller_vec;
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev