aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/bcm2836_control.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@csgraf.de>2022-02-09 13:41:34 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-02-21 13:30:19 +0000
commitad99f64f1cfff7c5e7af0e697523d9b7e45423b6 (patch)
treedac3fcd3c54474807b25986adec034f0e974068b /hw/intc/bcm2836_control.c
parent48006e03d5425b924af31091bc28e35619ffb948 (diff)
hvf: arm: Use macros for sysreg shift/masking
We are parsing the syndrome field for sysregs in multiple places across the hvf code, but repeat shift/mask operations with hard coded constants every time. This is an error prone approach and makes it harder to reason about the correctness of these operations. Let's introduce macros that allow us to unify the constants used as well as create new helpers to extract fields from the sysreg value. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alexander Graf <agraf@csgraf.de> Reviewed-by: Cameron Esfahani <dirty@apple.com <mailto:dirty@apple.com>> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20220209124135.69183-1-agraf@csgraf.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc/bcm2836_control.c')
0 files changed, 0 insertions, 0 deletions