diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-29 18:56:27 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-11-18 20:02:31 +0000 |
commit | d40f0bc579fb8b10da7181d3a144cd3e9a0a0e59 (patch) | |
tree | eb0a80fd0a21017befa4eee8c4e77380bb1b4657 /src/arch/x86/linux | |
parent | 697e55995626f24658ce443287cd1ba90c2f68eb (diff) | |
download | gem5-d40f0bc579fb8b10da7181d3a144cd3e9a0a0e59.tar.xz |
arch: Get rid of the (Big|Little)EndianGuest namespaces.
These namespaces were used to set up an environment/context where there
was an implicit guest namespace. This is an issue when there may be
multiple guest endiannesses which might be different. In cases where
we don't know what the guest endianness is, we can't rely on it being
an implicit part of our context since that would be ambiguous. In cases
where we do know, for instance in ISA specific code, we can just use
the endianness specific version that's appropriate for that context.
This also (somewhat) removes the assumption that there is a single
endianness that applies for a particular ISA. Practically speaking this
assumption will probably still stand though, since there would likely
be a non-trivial performance penalty to apply a configurable endianness
instead of a fixed one the compiler can optomize/remove.
Change-Id: I2dff338b58726d724f387388efe32d9233885680
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22374
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/x86/linux')
-rw-r--r-- | src/arch/x86/linux/system.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/arch/x86/linux/system.cc b/src/arch/x86/linux/system.cc index b4cd70e30..0aa94a225 100644 --- a/src/arch/x86/linux/system.cc +++ b/src/arch/x86/linux/system.cc @@ -48,7 +48,6 @@ #include "params/LinuxX86System.hh" #include "sim/byteswap.hh" -using namespace LittleEndianGuest; using namespace X86ISA; LinuxX86System::LinuxX86System(Params *p) |