diff options
author | Evgeniy Naydanov <109669442+en-sc@users.noreply.github.com> | 2024-06-05 19:26:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 19:26:06 +0300 |
commit | 40cda81e8bab91c1cb864a7d01aad5192d57c528 (patch) | |
tree | 2f90560e2468d8bde22179c3ba99b41064570047 /src/target/target.c | |
parent | b548653f66db7cc73bd0bdce33bc51220e509078 (diff) | |
parent | 9c4a5d64ca8e4310fd81de22bbf141c2a1d62b36 (diff) | |
download | riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.zip riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.gz riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.bz2 |
Merge pull request #1075 from en-sc/en-sc/from_upstream
Merge up to 437dde701c13e707e5fd912ef6403e09052e4d9b from upstream
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/target/target.c b/src/target/target.c index 0c57292..5187006 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1504,7 +1504,7 @@ static int target_init_one(struct command_context *cmd_ctx, */ if (type->mmu) { if (!type->virt2phys) { - LOG_ERROR("type '%s' is missing virt2phys", type->name); + LOG_ERROR("type '%s' is missing virt2phys", target_name(target)); type->virt2phys = identity_virt2phys; } } else { @@ -1513,7 +1513,7 @@ static int target_init_one(struct command_context *cmd_ctx, * ensure that virt2phys() is always an identity mapping. */ if (type->write_phys_memory || type->read_phys_memory || type->virt2phys) - LOG_WARNING("type '%s' has bad MMU hooks", type->name); + LOG_WARNING("type '%s' has bad MMU hooks", target_name(target)); type->mmu = no_mmu; type->write_phys_memory = type->write_memory; @@ -6721,6 +6721,13 @@ static const struct command_registration target_exec_command_handlers[] = { .usage = "address width data ['phys']", }, { + .name = "debug_reason", + .mode = COMMAND_EXEC, + .handler = handle_target_debug_reason, + .help = "displays the debug reason of this target", + .usage = "", + }, + { .name = "reset_nag", .handler = handle_target_reset_nag, .mode = COMMAND_ANY, |