diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-05-25 21:19:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-05-25 21:19:42 (GMT) |
commit | 1b524ce0e645e451ca76723f4f86fe2a71c1adf2 (patch) | |
tree | 8d818f5ea77ad27fd6bbb261acdd0a968f7ec599 /src/arch/arm/v7/pseudo.c | |
parent | 0e2849345be5018152d60b5aa27eebb2de75e1df (diff) |
Fixed various mistakes in the decoding of ARM instructions.
Diffstat (limited to 'src/arch/arm/v7/pseudo.c')
-rw-r--r-- | src/arch/arm/v7/pseudo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/arm/v7/pseudo.c b/src/arch/arm/v7/pseudo.c index 03644e2..6f2451b 100644 --- a/src/arch/arm/v7/pseudo.c +++ b/src/arch/arm/v7/pseudo.c @@ -601,7 +601,11 @@ bool armv7_shift_c(uint32_t x, unsigned int n, SRType type, unsigned int amount, if (type == SRType_RRX && amount != 1) return false; - if (amount == 0) return true; + if (amount == 0) + { + *value = 0; + return true; + } result = true; /* Pour GCC... */ |