riscv: drop deprecated command 'riscv set_prefer_sba' 71/7271/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 17 Oct 2022 10:28:57 +0000 (12:28 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 15 Jan 2023 14:56:50 +0000 (14:56 +0000)
Change-Id: I546efe4e1a6b673b26cfb4a74b5c3809fecda49c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7271
Tested-by: jenkins
Reviewed-by: Jan Matyas <matyas@codasip.com>
src/target/riscv/riscv.c

index 4f24fb41e1a5537941e9ff6d883725efdfcf92f4..dcd25fa08d7f7ff5b4b51081e75d8884cd463aa0 100644 (file)
@@ -2367,37 +2367,6 @@ COMMAND_HANDLER(riscv_set_reset_timeout_sec)
        return ERROR_OK;
 }
 
-COMMAND_HANDLER(riscv_set_prefer_sba)
-{
-       struct target *target = get_current_target(CMD_CTX);
-       RISCV_INFO(r);
-       bool prefer_sba;
-       LOG_WARNING("`riscv set_prefer_sba` is deprecated. Please use `riscv set_mem_access` instead.");
-       if (CMD_ARGC != 1) {
-               LOG_ERROR("Command takes exactly 1 parameter");
-               return ERROR_COMMAND_SYNTAX_ERROR;
-       }
-       COMMAND_PARSE_ON_OFF(CMD_ARGV[0], prefer_sba);
-       if (prefer_sba) {
-               /* Use system bus with highest priority */
-               r->mem_access_methods[0] = RISCV_MEM_ACCESS_SYSBUS;
-               r->mem_access_methods[1] = RISCV_MEM_ACCESS_PROGBUF;
-               r->mem_access_methods[2] = RISCV_MEM_ACCESS_ABSTRACT;
-       } else {
-               /* Use progbuf with highest priority */
-               r->mem_access_methods[0] = RISCV_MEM_ACCESS_PROGBUF;
-               r->mem_access_methods[1] = RISCV_MEM_ACCESS_SYSBUS;
-               r->mem_access_methods[2] = RISCV_MEM_ACCESS_ABSTRACT;
-       }
-
-       /* Reset warning flags */
-       r->mem_access_progbuf_warn = true;
-       r->mem_access_sysbus_warn = true;
-       r->mem_access_abstract_warn = true;
-
-       return ERROR_OK;
-}
-
 COMMAND_HANDLER(riscv_set_mem_access)
 {
        struct target *target = get_current_target(CMD_CTX);
@@ -2948,14 +2917,6 @@ static const struct command_registration riscv_exec_command_handlers[] = {
                .usage = "[sec]",
                .help = "Set the wall-clock timeout (in seconds) after reset is deasserted"
        },
-       {
-               .name = "set_prefer_sba",
-               .handler = riscv_set_prefer_sba,
-               .mode = COMMAND_ANY,
-               .usage = "on|off",
-               .help = "When on, prefer to use System Bus Access to access memory. "
-                       "When off (default), prefer to use the Program Buffer to access memory."
-       },
        {
                .name = "set_mem_access",
                .handler = riscv_set_mem_access,

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)