diff options
author | Paul Fertser <fercerpav@gmail.com> | 2018-05-22 12:04:31 +0300 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2018-05-30 09:36:46 +0100 |
commit | b50fa9a19d0b600d26b6cbca57cd94c7b89f941c (patch) | |
tree | b877109bddff78d9e6594edf70de5f457d5203cc /src/target/arm_adi_v5.c | |
parent | dae1ec1278fcac5369843b52db5eb12c2180d624 (diff) | |
download | riscv-openocd-b50fa9a19d0b600d26b6cbca57cd94c7b89f941c.zip riscv-openocd-b50fa9a19d0b600d26b6cbca57cd94c7b89f941c.tar.gz riscv-openocd-b50fa9a19d0b600d26b6cbca57cd94c7b89f941c.tar.bz2 |
Fix warnings exposed by GCC8
gcc (GCC) 8.1.0 generates new warnings and thus fails the build.
The ARM disassembler warnings actually exposed a bug in SMALW, SMULW and
SMUL instructions decoding.
Reported by Eimers on IRC.
Change-Id: I200c70f75a9e07a1f13a592addc1c5fb37714440
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/4526
Tested-by: jenkins
Reviewed-by: Jiri Kastner <cz172638@gmail.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r-- | src/target/arm_adi_v5.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index e2d9b5e..d0a58bd 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -152,6 +152,8 @@ static uint32_t mem_ap_get_tar_increment(struct adiv5_ap *ap) return 2; case CSW_32BIT: return 4; + default: + return 0; } case CSW_ADDRINC_PACKED: return 4; |