diff options
author | Marc Schink <dev@zapb.de> | 2021-06-04 14:38:17 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-06-18 23:14:27 +0100 |
commit | da770c4fbb9ea20904caf3fcf4b51d7d064d11a8 (patch) | |
tree | 5bb6fbc68167f0f839aca807a44aeb6f47c3fade /src/target/nds32.c | |
parent | 4bb1d8b45ecd768b972efb1e3e9cf6e55336f8fd (diff) | |
download | riscv-openocd-da770c4fbb9ea20904caf3fcf4b51d7d064d11a8.zip riscv-openocd-da770c4fbb9ea20904caf3fcf4b51d7d064d11a8.tar.gz riscv-openocd-da770c4fbb9ea20904caf3fcf4b51d7d064d11a8.tar.bz2 |
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>
Diffstat (limited to 'src/target/nds32.c')
-rw-r--r-- | src/target/nds32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/nds32.c b/src/target/nds32.c index cc6e2da..d524fc2 100644 --- a/src/target/nds32.c +++ b/src/target/nds32.c @@ -997,7 +997,7 @@ int nds32_arch_state(struct target *target) nds32->virtual_hosting ? ", virtual hosting" : ""); /* save pc value to pseudo register pc */ - struct reg *reg = register_get_by_name(target->reg_cache, "pc", 1); + struct reg *reg = register_get_by_name(target->reg_cache, "pc", true); buf_set_u32(reg->value, 0, 32, value_pc); return ERROR_OK; |