tcg: Convert typecode_to_ffi from array to function
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 22 Nov 2022 18:08:02 +0000 (19:08 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Jan 2023 19:41:29 +0000 (11:41 -0800)
commitc6ef8c7b350bdbb24cca9206f5b9aa577e5abafa
treedb8e77cf2a60012b2df75b306ad9d002e9f60e7e
parent39004a71d8f6b61501e41be21cc874272c78212f
tcg: Convert typecode_to_ffi from array to function

In the unlikely case of invalid typecode mask, the function
will abort instead of returning a NULL pointer.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221111074101.2069454-27-richard.henderson@linaro.org>
[PMD: Split from bigger patch]
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221122180804.938-2-philmd@linaro.org>
tcg/tcg.c