arch,cpu: Move endianness conversion of inst bytes into the ISA.
authorGabe Black <gabeblack@google.com>
Tue, 29 Oct 2019 22:12:10 +0000 (15:12 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 2 Nov 2019 00:01:52 +0000 (00:01 +0000)
commit8549ee4a6dfc86a941cee0a478c01f6f2c146c3c
treec6edb6d87332b970a6ffdcd518c4926cb86ce1e5
parent5fa59a283148aec728320e2d527c0157edfa5b66
arch,cpu: Move endianness conversion of inst bytes into the ISA.

It doesn't matter if the bytes are converted before or after they're
fed into the decoder. The ISA already knows what endianness to use
implicitly, and this frees the CPU which doesn't from having to worry
about it.

Change-Id: Id6574ee81bbf4f032c1d7b2901a664f2bd014fbc
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22343
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/alpha/decoder.hh
src/arch/arm/decoder.cc
src/arch/mips/decoder.hh
src/arch/power/decoder.hh
src/arch/riscv/decoder.cc
src/arch/sparc/decoder.hh
src/arch/x86/decoder.hh
src/cpu/checker/cpu_impl.hh
src/cpu/minor/fetch2.cc
src/cpu/o3/fetch_impl.hh
src/cpu/simple/base.cc