From 1acb1282904878d450dcd5718ff9703475419fc7 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 25 Oct 2017 13:37:56 -0700 Subject: [PATCH 1/3] Remove unused variables. Change-Id: I678d0a65c22792895375dc6916381f81af8f83e4 --- src/target/riscv/riscv-013.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index f17ef72e6..4ab9a2e9d 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -142,10 +142,6 @@ typedef struct { unsigned datacount; /* Number of words in the Program Buffer. */ unsigned progsize; - /* Number of Program Buffer registers. */ - /* Number of words in Debug RAM. */ - uint64_t tselect; - bool tselect_dirty; /* The value that mstatus actually has on the target right now. This is not * the value we present to the user. That one may be stored in the * reg_cache. */ From 6a1690d2ec1a532f3ebe5c1d0aa9d3fe17363c2d Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 27 Oct 2017 13:42:39 -0700 Subject: [PATCH 2/3] Fix compile warning with new gcc. Change-Id: I14ebf597f41429c0fc3ebac8da9c9f62c78fb1ae --- src/flash/nor/stm32f2x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index 0e4abb533..65cb212b6 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -1321,7 +1321,7 @@ COMMAND_HANDLER(stm32x_handle_unlock_command) * this will also force a device unlock if set */ stm32x_info->option_bytes.RDP = 0xAA; if (stm32x_info->has_optcr2_pcrop) { - stm32x_info->option_bytes.optcr2_pcrop = OPTCR2_PCROP_RDP | (~1 << bank->num_sectors); + stm32x_info->option_bytes.optcr2_pcrop = OPTCR2_PCROP_RDP | (~1U << bank->num_sectors); } if (stm32x_write_options(bank) != ERROR_OK) { From a4472f6d66f437a5c60ecdca95adb1f11ff6056b Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 31 Oct 2017 13:21:37 -0700 Subject: [PATCH 3/3] Build OpenOCD the way we expect users to build it. Change-Id: I3769137bc3109b44da76f2ca689d351bb93e7832 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f721700f9..a99f743e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,5 +28,5 @@ matrix: - gcc-multilib script: - - ./bootstrap && ./configure && make + - ./bootstrap && ./configure --enable-remote-bitbang --enable-jtag_vpi && make - file src/openocd