mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
target/arm: Replace sentinels with ARRAY_SIZE in cpregs.h
Remove a possible source of error by removing REGINFO_SENTINEL and using ARRAY_SIZE (convinently hidden inside a macro) to find the end of the set of regs being registered or modified. The space saved by not having the extra array element reduces the executable's .data.rel.ro section by about 9k. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220501055028.646596-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
330477eae9
commit
5809ac5709
8 changed files with 48 additions and 129 deletions
|
@ -257,7 +257,6 @@ static const ARMCPRegInfo pxa_pic_cp_reginfo[] = {
|
|||
REGINFO_FOR_PIC_CP("ICLR2", 8),
|
||||
REGINFO_FOR_PIC_CP("ICFP2", 9),
|
||||
REGINFO_FOR_PIC_CP("ICPR2", 0xa),
|
||||
REGINFO_SENTINEL
|
||||
};
|
||||
|
||||
static const MemoryRegionOps pxa2xx_pic_ops = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue