sim: Simplify registerThreadContext a little bit.
authorGabe Black <gabeblack@google.com>
Sat, 13 Jan 2018 00:16:56 +0000 (16:16 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 16 Jan 2018 10:17:23 +0000 (10:17 +0000)
commit694672093ece3253c984d8809f64440022a82978
tree0e9d98868ce45c6392e6d70f2e8aa19beba3bf8d
parentb8b13206c8d45cdcc16157d137845706bae915dd
sim: Simplify registerThreadContext a little bit.

The code in this function was a little convoluted. This change attempts
to simplify it a little bit to make it easier to read.

Change-Id: I1ae557b9fede47fa89a9ea550bd0af8ad242449f
Reviewed-on: https://gem5-review.googlesource.com/7421
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/sim/system.cc