mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
ARM back-end: Fix encode_imm
the encode_imm function in tcg/arm/tcg-target.c lacks shift declaration. Laurent Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
0d6b0b1d81
commit
4e6f6d4c20
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ static inline uint32_t rotl(uint32_t val, int n)
|
|||
right-rotated by an even amount between 0 and 30. */
|
||||
static inline int encode_imm(uint32_t imm)
|
||||
{
|
||||
int shift;
|
||||
|
||||
/* simple case, only lower bits */
|
||||
if ((imm & ~0xff) == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue