struct _be_execution_unit_type_t {
unsigned n_units;
+ unsigned ports_per_unit;
const char *name;
be_execution_unit_t *units;
};
be_execution_unit_type_t *unit_types;
};
+extern be_execution_unit_t be_machine_execution_units_DUMMY[1];
+
+/**
+ * Initialize generic dummy unit.
+ */
+void be_machine_init_dummy_unit(void);
+
+/**
+ * Returns the generic dummy unit.
+ */
+be_execution_unit_t *be_machine_get_dummy_unit(void);
+
+/**
+ * Check if given unit is the generic dummy unit.
+ */
+int be_machine_is_dummy_unit(const be_execution_unit_t *unit);
+
+/**
+ * Check if given unit is the generic dummy unit type.
+ */
+int be_machine_is_dummy_unit_type(const be_execution_unit_type_t *tp);
+
/**
* Get the number of available unit types in the given machine.
*/