changeset b247610d8882 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=b247610d8882
description:
ruby: remove random uint typedef and use unsigned
diffstat:
4 files changed, 7 insertions(+), 8 deletions(-)
src/mem/gems_common/util.cc | 2 +-
src/mem/ruby/common/Global.hh | 1 -
src/mem/ruby/common/SubBlock.hh | 2 +-
src/mem/slicc/symbols/SymbolTable.cc | 10 +++++-----
diffs (71 lines):
diff -r 6baf252c5ad1 -r b247610d8882 src/mem/gems_common/util.cc
--- a/src/mem/gems_common/util.cc Tue May 12 22:33:05 2009 -0700
+++ b/src/mem/gems_common/util.cc Tue May 12 22:33:05 2009 -0700
@@ -42,7 +42,7 @@
string head = "";
string tail = "";
- uint counter = 0;
+ unsigned counter = 0;
while(counter < str.size()) {
if (str[counter] == split_character) {
counter++;
diff -r 6baf252c5ad1 -r b247610d8882 src/mem/ruby/common/Global.hh
--- a/src/mem/ruby/common/Global.hh Tue May 12 22:33:05 2009 -0700
+++ b/src/mem/ruby/common/Global.hh Tue May 12 22:33:05 2009 -0700
@@ -85,7 +85,6 @@
typedef Time LogicalTime;
typedef int64 Index; // what the address bit ripper returns
typedef int word; // one word of a cache line
-typedef unsigned int uint;
typedef int SwitchID;
typedef int LinkID;
diff -r 6baf252c5ad1 -r b247610d8882 src/mem/ruby/common/SubBlock.hh
--- a/src/mem/ruby/common/SubBlock.hh Tue May 12 22:33:05 2009 -0700
+++ b/src/mem/ruby/common/SubBlock.hh Tue May 12 22:33:05 2009 -0700
@@ -85,7 +85,7 @@
// Data Members (m_ prefix)
Address m_address;
Address m_logicalAddress;
- Vector<uint> m_data;
+ Vector<unsigned> m_data;
};
// Output operator declaration
diff -r 6baf252c5ad1 -r b247610d8882 src/mem/slicc/symbols/SymbolTable.cc
--- a/src/mem/slicc/symbols/SymbolTable.cc Tue May 12 22:33:05 2009 -0700
+++ b/src/mem/slicc/symbols/SymbolTable.cc Tue May 12 22:33:05 2009 -0700
@@ -477,8 +477,8 @@
string child_types = var->lookupPair("child_types");
string::iterator it = child_types.begin();
- uint num_types = 0;
- for(uint t=0;t<child_types.size();t++){
+ unsigned num_types = 0;
+ for(unsigned t=0;t<child_types.size();t++){
if(child_types.at(t) == '<'){
num_types++;
}
@@ -488,10 +488,10 @@
string* ids = new string[num_types];
int type_idx = 0;
bool id_done = false;
- for(uint t=0;t<child_types.size();t++){
+ for(unsigned t=0;t<child_types.size();t++){
if(child_types[t] == '<'){
id_done = false;
- uint r;
+ unsigned r;
for(r=t+1;child_types.at(r)!='>';r++){
if(r == child_types.size()){
cerr << "Parse error in child_types" << endl;
@@ -509,7 +509,7 @@
}
}
- for(uint t=0;t<num_types;t++){
+ for(unsigned t=0;t<num_types;t++){
if(t==0)
sstr << " if(strcmp(" << child_selector << ", \"" <<
ids[t] << "\") == 0)" << endl;
else
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev