aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg-internal.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-08-09 12:27:08 -1000
committerRichard Henderson <richard.henderson@linaro.org>2021-09-14 12:00:21 -0700
commit90606715dc1b5de5c432afd0deac8b5c6d36eeda (patch)
tree57ddb8f177658e23add26db054baf0447458969c /tcg/tcg-internal.h
parent31d160adc9d2a13db582096bb844038732c1fbea (diff)
tcg/arm: Simplify usage of encode_imm
We have already computed the rotated value of the imm8 portion of the complete imm12 encoding. No sense leaving the combination of rot + rotation to the caller. Create an encode_imm12_nofail helper that performs an assert. This removes the final use of the local "rotl" function, which duplicated our generic "rol32" function. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-internal.h')
0 files changed, 0 insertions, 0 deletions