target/nios2: Split out helpers for gen_r_math_logic
commit7c849046af7cec5efbacdb9b3ff14ebef9abebd6
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 22 Apr 2022 16:25:30 +0000 (22 09:25 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:16:55 +0000 (26 08:16 -0700)
tree214e6d9ab4da068fea5961fde44556e12052fee7
parentcd419bc63d8f98b07503511286a28cbedab12cd7
target/nios2: Split out helpers for gen_r_math_logic

Split the macro in two, one for reg/imm and one for reg/reg.
Do as little work as possible within the macros; split out
helper functions and pass in arguments instead.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/nios2/translate.c