sim: Simplify collecting the key value in initParam.
authorGabe Black <gabeblack@google.com>
Wed, 25 Mar 2020 23:22:37 +0000 (16:22 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 27 Apr 2020 21:03:28 +0000 (21:03 +0000)
commitfc7ada3e7c1e15c9aec1d4eb708fe7bac5a1ba5e
treee6624523b9d9c07b579bc0439d95d37de1d77fe7
parentc12a72e07302e84450bebe007d522a512a85fe21
sim: Simplify collecting the key value in initParam.

If the first register is all zeroes, it doesn't really matter what the
other register is. If the first register has the entire string, we still
don't care what the other register has in it. There's no reason to
complicate the code with these extra checks.

Change-Id: I22ad521b9ace915ccb75f15934fc6b3d650d5293
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27228
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
src/sim/pseudo_inst.cc