cpu: Don't construct and then copy the decoder in SimpleThread.
authorGabe Black <gabeblack@google.com>
Wed, 19 Aug 2020 03:46:45 +0000 (20:46 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Aug 2020 01:08:25 +0000 (01:08 +0000)
commit6add4fbc12d848fff6fae33cf0fcd9df063f1b62
tree8645c1253f2bbf898c982c65b20b1537ff687e98
parent65c8b246ba2ec9b8be95b419ebab09d954617ccc
cpu: Don't construct and then copy the decoder in SimpleThread.

The SimpleThread constructor was constructing a temporary copy of the
decoder, and then copying it into it's local version. This copy is a
waste, and also requires there to be a copy operator for the Decoder.

Change-Id: I1123b4ec767e08ceb2f108b3a6b19ca18d7c677c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32900
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/simple_thread.cc