diff options
| author | Aaron Lindsay | 2019-01-21 11:23:14 +0100 |
|---|---|---|
| committer | Peter Maydell | 2019-01-21 11:38:55 +0100 |
| commit | 980ebe87053792a5bdefaa87777c40914fd4f673 (patch) | |
| tree | 4fe3468b705e4cb39291ef1a45a7dc10411ee684 /scripts/modules | |
| parent | target/arm: Reorganize PMCCNTR accesses (diff) | |
| download | qemu-980ebe87053792a5bdefaa87777c40914fd4f673.tar.gz qemu-980ebe87053792a5bdefaa87777c40914fd4f673.tar.xz qemu-980ebe87053792a5bdefaa87777c40914fd4f673.zip | |
target/arm: Swap PMU values before/after migrations
Because of the PMU's design, many register accesses have side effects
which are inter-related, meaning that the normal method of saving CP
registers can result in inconsistent state. These side-effects are
largely handled in pmu_op_start/finish functions which can be called
before and after the state is saved/restored. By doing this and adding
raw read/write functions for the affected registers, we avoid
migration-related inconsistencies.
Signed-off-by: Aaron Lindsay <aclindsa@gmail.com>
Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20181211151945.29137-4-aaron@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
