changeset de4b394c6792 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=de4b394c6792
description:
        ruby: added broadcast mechanism

diffstat:

2 files changed, 12 insertions(+)
src/mem/protocol/RubySlicc_ComponentMapping.sm             |    1 +
src/mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh |   11 +++++++++++

diffs (32 lines):

diff -r 346b8460b306 -r de4b394c6792 
src/mem/protocol/RubySlicc_ComponentMapping.sm
--- a/src/mem/protocol/RubySlicc_ComponentMapping.sm    Tue Sep 15 11:32:11 
2009 -0500
+++ b/src/mem/protocol/RubySlicc_ComponentMapping.sm    Tue Sep 15 20:39:00 
2009 -0500
@@ -31,6 +31,7 @@
 
 // NodeID map_address_to_node(Address addr);
 MachineID mapAddressToRange(Address addr, MachineType type, int low, int high);
+NetDest broadcast(MachineType type);
 MachineID map_Address_to_DMA(Address addr);
 MachineID map_Address_to_Directory(Address addr);
 NodeID map_Address_to_DirectoryNode(Address addr);
diff -r 346b8460b306 -r de4b394c6792 
src/mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh
--- a/src/mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh        Tue Sep 
15 11:32:11 2009 -0500
+++ b/src/mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh        Tue Sep 
15 20:39:00 2009 -0500
@@ -85,6 +85,17 @@
   return dma;
 }
 
+inline 
+NetDest broadcast(MachineType type)
+{
+  NetDest dest;
+  for (int i=0; i<MachineType_base_count(type); i++) {
+    MachineID mach = {type, i};
+    dest.add(mach);
+  }
+  return dest;
+}
+
 inline
 MachineID mapAddressToRange(const Address & addr, MachineType type, int 
low_bit, int num_bits)
 {
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to