summaryrefslogtreecommitdiffstats
path: root/hw/s390x/sclp.c
diff options
context:
space:
mode:
authorAlexander Graf2022-02-09 13:41:34 +0100
committerPeter Maydell2022-02-21 14:30:19 +0100
commitad99f64f1cfff7c5e7af0e697523d9b7e45423b6 (patch)
treedac3fcd3c54474807b25986adec034f0e974068b /hw/s390x/sclp.c
parentMAINTAINERS: Adding myself as a reviewer of some components (diff)
downloadqemu-ad99f64f1cfff7c5e7af0e697523d9b7e45423b6.tar.gz
qemu-ad99f64f1cfff7c5e7af0e697523d9b7e45423b6.tar.xz
qemu-ad99f64f1cfff7c5e7af0e697523d9b7e45423b6.zip
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/s390x/sclp.c')
0 files changed, 0 insertions, 0 deletions