diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2021-07-02 11:40:10 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2021-07-09 16:09:12 +0100 |
| commit | e24a9f6a595cc4502b67046ea3860cae2be15b71 (patch) | |
| tree | 56537a548c6a44fa9516895ca316aec8f328cd00 /scripts/modinfo-generate.py | |
| parent | 102d7d1fba6d1121c86ef31c33b808a3104ab263 (diff) | |
| download | focaccia-qemu-e24a9f6a595cc4502b67046ea3860cae2be15b71.tar.gz focaccia-qemu-e24a9f6a595cc4502b67046ea3860cae2be15b71.zip | |
hw/gpio/pl061: Clean up read/write offset handling logic
Currently the pl061_read() and pl061_write() functions handle offsets using a combination of three if() statements and a switch(). Clean this up to use just a switch, using case ranges. This requires that instead of catching accesses to the luminary-only registers on a stock PL061 via a check on s->rsvd_start we use an "is this luminary?" check in the cases for each luminary-only register. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/modinfo-generate.py')
0 files changed, 0 insertions, 0 deletions