diff options
author | Aaron Lindsay <aaron@os.amperecomputing.com> | 2019-01-21 10:23:13 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-01-21 10:38:55 +0000 |
commit | 5d05b9d462666ed21b7fef61aa45dec9aaa9f0ff (patch) | |
tree | 6ba7952d1335c704d8af79b58be6d589e15ce1c9 /scripts/render_block_graph.py | |
parent | 8c07559fc7ee132e2145ad09299a08c10ebe7804 (diff) | |
download | qemu-5d05b9d462666ed21b7fef61aa45dec9aaa9f0ff.zip qemu-5d05b9d462666ed21b7fef61aa45dec9aaa9f0ff.tar.gz qemu-5d05b9d462666ed21b7fef61aa45dec9aaa9f0ff.tar.bz2 |
target/arm: Reorganize PMCCNTR accesses
pmccntr_read and pmccntr_write contained duplicate code that was already
being handled by pmccntr_sync. Consolidate the duplicated code into two
functions: pmccntr_op_start and pmccntr_op_finish. Add a companion to
c15_ccnt in CPUARMState so that we can simultaneously save both the
architectural register value and the last underlying cycle count - this
ensures time isn't lost and will also allow us to access the 'old'
architectural register value in order to detect overflows in later
patches.
Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org>
Signed-off-by: Aaron Lindsay <aclindsa@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20181211151945.29137-3-aaron@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/render_block_graph.py')
0 files changed, 0 insertions, 0 deletions