I don't like using the word hack. Hence, the patch.
bool isPresent(Address);
}
- TBETable L1_TBEs, template_hack="<L1Cache_TBE>";
+ TBETable L1_TBEs, template="<L1Cache_TBE>";
MessageBuffer mandatoryQueue, ordered="false";
bool isPresent(Address);
}
- TBETable L2_TBEs, template_hack="<L2Cache_TBE>";
+ TBETable L2_TBEs, template="<L2Cache_TBE>";
void set_cache_entry(AbstractCacheEntry a);
void unset_cache_entry();
// ** OBJECTS **
- TBETable TBEs, template_hack="<Directory_TBE>";
+ TBETable TBEs, template="<Directory_TBE>";
void set_tbe(TBE tbe);
void unset_tbe();
// STRUCTURES
- TBETable TBEs, template_hack="<L1Cache_TBE>";
+ TBETable TBEs, template="<L1Cache_TBE>";
// PROTOTYPES
void set_cache_entry(AbstractCacheEntry a);
}
// ** OBJECTS **
- TBETable TBEs, template_hack="<Directory_TBE>";
+ TBETable TBEs, template="<Directory_TBE>";
void set_tbe(TBE b);
void unset_tbe();
MessageBuffer mandatoryQueue, ordered="false", abstract_chip_ptr="true";
- TBETable TBEs, template_hack="<L1Cache_TBE>";
+ TBETable TBEs, template="<L1Cache_TBE>";
TimerTable useTimerTable;
int l2_select_low_bit, default="RubySystem::getBlockSizeBits()";
}
- TBETable TBEs, template_hack="<L2Cache_TBE>";
- PerfectCacheMemory localDirectory, template_hack="<L2Cache_DirEntry>";
+ TBETable TBEs, template="<L2Cache_TBE>";
+ PerfectCacheMemory localDirectory, template="<L2Cache_DirEntry>";
void set_cache_entry(AbstractCacheEntry b);
void unset_cache_entry();
}
// ** OBJECTS **
- TBETable TBEs, template_hack="<Directory_TBE>";
+ TBETable TBEs, template="<Directory_TBE>";
void set_tbe(TBE b);
void unset_tbe();
MessageBuffer mandatoryQueue, ordered="false";
MessageBuffer triggerQueue, ordered="true";
- TBETable TBEs, template_hack="<DMA_TBE>";
+ TBETable TBEs, template="<DMA_TBE>";
State cur_state;
void set_tbe(TBE b);
void wakeUpAllBuffers();
void wakeUpBuffers(Address a);
- TBETable L1_TBEs, template_hack="<L1Cache_TBE>";
+ TBETable L1_TBEs, template="<L1Cache_TBE>";
MessageBuffer mandatoryQueue, ordered="false", abstract_chip_ptr="true";
}
PersistentTable persistentTable;
- PerfectCacheMemory localDirectory, template_hack="<L2Cache_DirEntry>";
+ PerfectCacheMemory localDirectory, template="<L2Cache_DirEntry>";
void set_cache_entry(AbstractCacheEntry b);
void unset_cache_entry();
PersistentTable persistentTable;
TimerTable reissueTimerTable;
- TBETable TBEs, template_hack="<Directory_TBE>";
+ TBETable TBEs, template="<Directory_TBE>";
bool starving, default="false";
int l2_select_low_bit, default="RubySystem::getBlockSizeBits()";
bool isPresent(Address);
}
- TBETable TBEs, template_hack="<L1Cache_TBE>";
+ TBETable TBEs, template="<L1Cache_TBE>";
void set_cache_entry(AbstractCacheEntry b);
void unset_cache_entry();
Set fwd_set;
- TBETable TBEs, template_hack="<Directory_TBE>";
+ TBETable TBEs, template="<Directory_TBE>";
Entry getDirectoryEntry(Address addr), return_by_pointer="yes" {
Entry dir_entry := static_cast(Entry, "pointer", directory[addr]);
// STRUCTURES
- TBETable TBEs, template_hack="<L1Cache_TBE>";
+ TBETable TBEs, template="<L1Cache_TBE>";
// FUNCTIONS
// Objects
''')
for var in self.objects:
- th = var.get("template_hack", "")
+ th = var.get("template", "")
code('${{var.type.c_ident}}$th* m_${{var.c_ident}}_ptr;')
if var.type.ident == "MessageBuffer":
if "factory" in var:
code('$vid = ${{var["factory"]}};')
elif var.ident.find("mandatoryQueue") < 0:
- th = var.get("template_hack", "")
+ th = var.get("template", "")
expr = "%s = new %s%s" % (vid, vtype.c_ident, th)
args = ""