Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: add method to set initial register value out of constructor.
The initial value of register is set in constructor but there is no standard way to assign the initial value and default value at the same time out of that. So we decided to add an extra method to set the initialValue to current register value. The usecase would be: reg.get().field1 = val1; reg.get().field2 = val2; reg.resetInitialValue(); Change-Id: Ibc5454e2945cc6aff943e6599043edd8ca442f5f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67917 Tested-by: kokoro <[email protected]> Reviewed-by: Gabe Black <[email protected]> Maintainer: Gabe Black <[email protected]>
- Loading branch information