ruby: added generic dma machine
This commit is contained in:
parent
4f83390781
commit
255f82a783
|
@ -173,6 +173,7 @@ enumeration(GenericMachineType, desc="...", default="GenericMachineType_NULL") {
|
|||
L2Cache, desc="L2 Cache Mach";
|
||||
L3Cache, desc="L3 Cache Mach";
|
||||
Directory, desc="Directory Mach";
|
||||
DMA, desc="DMA Mach";
|
||||
Collector, desc="Collector Mach";
|
||||
L1Cache_wCC, desc="L1 Cache Mach with Cache Coherence (used for miss latency profile)";
|
||||
L2Cache_wCC, desc="L1 Cache Mach with Cache Coherence (used for miss latency profile)";
|
||||
|
|
|
@ -151,6 +151,9 @@ ConvertMachToGenericMach(MachineType machType)
|
|||
if (machType == MachineType_Directory)
|
||||
return GenericMachineType_Directory;
|
||||
|
||||
if (machType == MACHINETYPE_DMA_ENUM)
|
||||
return GenericMachineType_DMA;
|
||||
|
||||
panic("cannot convert to a GenericMachineType");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue