Use boolean argument for register_get_by_name()
Change-Id: Ie913630c6ab3b600532d8e375e2fc11ca202cf5e Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/6295 Tested-by: jenkins Reviewed-by: Jan Matyas <matyas@codasip.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
4bb1d8b45e
commit
da770c4fbb
@@ -2342,7 +2342,7 @@ int target_profiling_default(struct target *target, uint32_t *samples,
|
||||
|
||||
uint32_t sample_count = 0;
|
||||
/* hopefully it is safe to cache! We want to stop/restart as quickly as possible. */
|
||||
struct reg *reg = register_get_by_name(target->reg_cache, "pc", 1);
|
||||
struct reg *reg = register_get_by_name(target->reg_cache, "pc", true);
|
||||
|
||||
int retval = ERROR_OK;
|
||||
for (;;) {
|
||||
@@ -3134,7 +3134,7 @@ COMMAND_HANDLER(handle_reg_command)
|
||||
}
|
||||
} else {
|
||||
/* access a single register by its name */
|
||||
reg = register_get_by_name(target->reg_cache, CMD_ARGV[0], 1);
|
||||
reg = register_get_by_name(target->reg_cache, CMD_ARGV[0], true);
|
||||
|
||||
if (!reg)
|
||||
goto not_found;
|
||||
|
||||
Reference in New Issue
Block a user