aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-02-06 13:29:24 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-02-15 14:32:38 +0000
commit5f3bbbdbd0d2c87855936c20b78f1e538802bcd9 (patch)
tree40be6975876f40dc5f9b304fe323a4a836d03fc3 /scripts/qapi/parser.py
parenta72e625078d4766367510887552f8c2f49bd7039 (diff)
downloadqemu-5f3bbbdbd0d2c87855936c20b78f1e538802bcd9.zip
qemu-5f3bbbdbd0d2c87855936c20b78f1e538802bcd9.tar.gz
qemu-5f3bbbdbd0d2c87855936c20b78f1e538802bcd9.tar.bz2
hw/misc/mps2-scc: Factor out which-board conditionals
The MPS SCC device has a lot of different flavours for the various different MPS FPGA images, which look mostly similar but have differences in how particular registers are handled. Currently we deal with this with a lot of open-coded checks on scc_partno(), but as we add more board types this is getting a bit hard to read. Factor out the conditions into some functions which we can give more descriptive names to. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240206132931.38376-7-peter.maydell@linaro.org
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions