class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing',
'atomic_noncaching']
+if buildEnv['TARGET_ISA'] in ('sparc', 'power'):
+ default_byte_order = 'big'
+else:
+ default_byte_order = 'little'
+
class System(SimObject):
type = 'System'
cxx_header = "sim/system.hh"
cache_line_size = Param.Unsigned(64, "Cache line size in bytes")
+ byte_order = Param.ByteOrder(default_byte_order,
+ "Default byte order of system components")
+
redirect_paths = VectorParam.RedirectPath([], "Path redirections")
exit_on_work_items = Param.Bool(False, "Exit from the simulation loop when "
ByteOrder
getGuestByteOrder() const
{
-#if THE_ISA != NULL_ISA
- return TheISA::GuestByteOrder;
-#else
- panic("The NULL ISA has no endianness.");
-#endif
+ return _params->byte_order;
}
/**