Merge pull request #217 from riscv/disable_target64

build with --disable-target64
This commit is contained in:
Tim Newsome 2018-02-26 12:06:47 -08:00 committed by GitHub
commit 9033d99491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -30,6 +30,7 @@ matrix:
env: env:
- BUILD=i686-linux-gnu - BUILD=i686-linux-gnu
- CFLAGS=-m32 - CFLAGS=-m32
- CONFIGURE_ARGS="--disable-target64"
- EXECUTABLE=openocd - EXECUTABLE=openocd
compiler: clang compiler: clang
addons: addons:

View File

@ -702,7 +702,7 @@ static int mips_m4k_set_breakpoint(struct target *target,
} }
if (verify == 0) { if (verify == 0) {
LOG_ERROR("Unable to set 32bit breakpoint at address %08" PRIx64 LOG_ERROR("Unable to set 32bit breakpoint at address %08" TARGET_PRIxADDR
" - check that memory is read/writable", breakpoint->address); " - check that memory is read/writable", breakpoint->address);
return ERROR_OK; return ERROR_OK;
} }
@ -723,7 +723,7 @@ static int mips_m4k_set_breakpoint(struct target *target,
return retval; return retval;
if (verify != MIPS16_SDBBP(isa_req)) { if (verify != MIPS16_SDBBP(isa_req)) {
LOG_ERROR("Unable to set 16bit breakpoint at address %08" PRIx64 LOG_ERROR("Unable to set 16bit breakpoint at address %08" TARGET_PRIxADDR
" - check that memory is read/writable", breakpoint->address); " - check that memory is read/writable", breakpoint->address);
return ERROR_OK; return ERROR_OK;
} }

View File

@ -795,12 +795,12 @@ static int examine_progbuf(struct target *target)
uint32_t written = dmi_read(target, DMI_PROGBUF0); uint32_t written = dmi_read(target, DMI_PROGBUF0);
if (written == (uint32_t) info->progbuf_address) { if (written == (uint32_t) info->progbuf_address) {
LOG_INFO("progbuf is writable at 0x%" TARGET_PRIxADDR, LOG_INFO("progbuf is writable at 0x%" PRIx64,
info->progbuf_address); info->progbuf_address);
info->progbuf_writable = YNM_YES; info->progbuf_writable = YNM_YES;
} else { } else {
LOG_INFO("progbuf is not writeable at 0x%" TARGET_PRIxADDR, LOG_INFO("progbuf is not writeable at 0x%" PRIx64,
info->progbuf_address); info->progbuf_address);
info->progbuf_writable = YNM_NO; info->progbuf_writable = YNM_NO;
} }
@ -1746,8 +1746,8 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
* dm_data0 contains mem[s0 - 2*size] * dm_data0 contains mem[s0 - 2*size]
* s1 contains mem[s0-size] */ * s1 contains mem[s0-size] */
LOG_DEBUG("creating burst to read from 0x%" TARGET_PRIxADDR LOG_DEBUG("creating burst to read from 0x%" PRIx64
" up to 0x%" TARGET_PRIxADDR, read_addr, fin_addr); " up to 0x%" PRIx64, read_addr, fin_addr);
assert(read_addr >= address && read_addr < fin_addr); assert(read_addr >= address && read_addr < fin_addr);
struct riscv_batch *batch = riscv_batch_alloc(target, 32, struct riscv_batch *batch = riscv_batch_alloc(target, 32,
info->dmi_busy_delay + info->ac_busy_delay); info->dmi_busy_delay + info->ac_busy_delay);