diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-29 15:31:04 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-30 22:29:23 +0000 |
commit | 607df7e656304f0a2a4ca811acd758ee21b9642e (patch) | |
tree | 915761c56cb7d6888e05157a94bd627365483c4f /src/arch/arm/freebsd | |
parent | 7adc90a2970dfdc54560305ddca46c90ce519016 (diff) | |
download | gem5-607df7e656304f0a2a4ca811acd758ee21b9642e.tar.xz |
arch: Make endianness a property of the OS class syscalls can consume.
That way the syscall implementations won't have to find the right
endianness to use on their own, typically by referring to TheISA.
Change-Id: I186b2f419d5dbee72cc9b5abce7356f3143f0c83
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22363
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/freebsd')
-rw-r--r-- | src/arch/arm/freebsd/freebsd.hh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/arch/arm/freebsd/freebsd.hh b/src/arch/arm/freebsd/freebsd.hh index e2c5e493c..b1360473e 100644 --- a/src/arch/arm/freebsd/freebsd.hh +++ b/src/arch/arm/freebsd/freebsd.hh @@ -35,10 +35,15 @@ #include "kern/freebsd/freebsd.hh" -class ArmFreebsd32 : public FreeBSD +class ArmFreebsd : public FreeBSD { public: + static const ByteOrder byteOrder = LittleEndianByteOrder; +}; +class ArmFreebsd32 : public ArmFreebsd +{ + public: /// This table maps the target open() flags to the corresponding /// host open() flags. static SyscallFlagTransTable openFlagTable[]; @@ -192,7 +197,7 @@ class ArmFreebsd32 : public FreeBSD }; }; -class ArmFreebsd64 : public FreeBSD +class ArmFreebsd64 : public ArmFreebsd { public: |