diff options
-rw-r--r-- | src/sim/system.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh index d205ffb7a..338b12619 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -283,6 +283,19 @@ class System : public SimObject, public PCEventScope */ Arch getArch() const { return Arch::TheISA; } + /** + * Get the guest byte order. + */ + ByteOrder + getGuestByteOrder() const + { +#if THE_ISA != NULL_ISA + return TheISA::GuestByteOrder; +#else + panic("The NULL ISA has no endianness."); +#endif + } + /** * Get the page bytes for the ISA. */ |