OSDN Git Service

target/arm: Simplify iteration over bit widths
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Feb 2023 21:33:24 +0000 (11:33 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Mar 2023 14:08:11 +0000 (14:08 +0000)
commit55f0fc61f8a386dbadecec6aa0ab442df5f12e4d
tree272602871a98070ccd09d625ea1b5a72bfe6b020
parent41c9ad8fb4641d812309b8f75329a74aa7397fc9
target/arm: Simplify iteration over bit widths

Order suf[] by the log8 of the width.
Use ARRAY_SIZE instead of hard-coding 128.

This changes the order of the union definitions,
but retains the order of the union-of-union members.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230227213329.793795-10-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/gdbstub64.c