From 8af4a9a053a1bd1d5802bdfc5c8dd25af71b3456 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 7 Feb 2017 11:28:50 -0800 Subject: [PATCH] Update DMI bus width for 0.13. Change-Id: Ieff13a7a0084fe822b7cc6d927727eba4f158ef0 --- src/target/riscv/riscv-011.c | 4 ---- src/target/riscv/riscv-013.c | 8 ++------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index fe2858f02..e940d20fa 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -1442,10 +1442,6 @@ static int init_target(struct command_context *cmd_ctx, return ERROR_FAIL; riscv011_info_t *info = get_info(target); - select_dtmcontrol.num_bits = target->tap->ir_length; - select_dbus.num_bits = target->tap->ir_length; - select_idcode.num_bits = target->tap->ir_length; - target->reg_cache = calloc(1, sizeof(*target->reg_cache)); target->reg_cache->name = "RISC-V registers"; target->reg_cache->num_regs = REG_COUNT; diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 84c83dc82..f6438a622 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -108,8 +108,8 @@ typedef enum { DBUS_STATUS_BUSY = 3 } dbus_status_t; #define DBUS_DATA_START 2 -#define DBUS_DATA_SIZE 34 -#define DBUS_ADDRESS_START 36 +#define DBUS_DATA_SIZE 32 +#define DBUS_ADDRESS_START 34 typedef enum { RE_OK, @@ -1442,10 +1442,6 @@ static int init_target(struct command_context *cmd_ctx, return ERROR_FAIL; riscv013_info_t *info = get_info(target); - select_dtmcontrol.num_bits = target->tap->ir_length; - select_dbus.num_bits = target->tap->ir_length; - select_idcode.num_bits = target->tap->ir_length; - target->reg_cache = calloc(1, sizeof(*target->reg_cache)); target->reg_cache->name = "RISC-V registers"; target->reg_cache->num_regs = REG_COUNT;