riscv: drop deprecated command 'riscv test_sba_config_reg'
Change-Id: I51c1b1cb3de8cb86ee38280fa3f035f6f7a63dbc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7272 Reviewed-by: Jan Matyas <matyas@codasip.com> Reviewed-by: Tim Newsome <tim@sifive.com> Tested-by: jenkins
This commit is contained in:
@@ -2711,38 +2711,6 @@ COMMAND_HANDLER(riscv_dmi_write)
|
||||
}
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(riscv_test_sba_config_reg)
|
||||
{
|
||||
LOG_WARNING("Command \"riscv test_sba_config_reg\" is deprecated. "
|
||||
"It will be removed in a future OpenOCD version.");
|
||||
|
||||
if (CMD_ARGC != 4) {
|
||||
LOG_ERROR("Command takes exactly 4 arguments");
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
}
|
||||
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
RISCV_INFO(r);
|
||||
|
||||
target_addr_t legal_address;
|
||||
uint32_t num_words;
|
||||
target_addr_t illegal_address;
|
||||
bool run_sbbusyerror_test;
|
||||
|
||||
COMMAND_PARSE_NUMBER(target_addr, CMD_ARGV[0], legal_address);
|
||||
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], num_words);
|
||||
COMMAND_PARSE_NUMBER(target_addr, CMD_ARGV[2], illegal_address);
|
||||
COMMAND_PARSE_ON_OFF(CMD_ARGV[3], run_sbbusyerror_test);
|
||||
|
||||
if (r->test_sba_config_reg) {
|
||||
return r->test_sba_config_reg(target, legal_address, num_words,
|
||||
illegal_address, run_sbbusyerror_test);
|
||||
} else {
|
||||
LOG_ERROR("test_sba_config_reg is not implemented for this target.");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(riscv_reset_delays)
|
||||
{
|
||||
int wait = 0;
|
||||
@@ -2982,19 +2950,6 @@ static const struct command_registration riscv_exec_command_handlers[] = {
|
||||
.usage = "address value",
|
||||
.help = "Perform a 32-bit DMI write of value at address."
|
||||
},
|
||||
{
|
||||
.name = "test_sba_config_reg",
|
||||
.handler = riscv_test_sba_config_reg,
|
||||
.mode = COMMAND_ANY,
|
||||
.usage = "legal_address num_words "
|
||||
"illegal_address run_sbbusyerror_test[on/off]",
|
||||
.help = "Perform a series of tests on the SBCS register. "
|
||||
"Inputs are a legal, 128-byte aligned address and a number of words to "
|
||||
"read/write starting at that address (i.e., address range [legal address, "
|
||||
"legal_address+word_size*num_words) must be legally readable/writable), "
|
||||
"an illegal, 128-byte aligned address for error flag/handling cases, "
|
||||
"and whether sbbusyerror test should be run."
|
||||
},
|
||||
{
|
||||
.name = "reset_delays",
|
||||
.handler = riscv_reset_delays,
|
||||
|
||||
Reference in New Issue
Block a user