diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2021-12-08 22:11:32 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-12-18 17:23:04 +0000 |
commit | 33fa237b2ffdfc24b7e0c0861ac7708b21431c8c (patch) | |
tree | ea6a4de7566a08337a214826e444b29b66d6e906 /src/helper/command.c | |
parent | 1e07079dee083255eb84fdebdfd4ed4c30e82812 (diff) | |
download | riscv-openocd-33fa237b2ffdfc24b7e0c0861ac7708b21431c8c.zip riscv-openocd-33fa237b2ffdfc24b7e0c0861ac7708b21431c8c.tar.gz riscv-openocd-33fa237b2ffdfc24b7e0c0861ac7708b21431c8c.tar.bz2 |
target/cortex_m: minor refactoring in cortex_m_store_core_reg_u32()
Unlike cortex_m_load_core_reg_u32() storing core register uses
the same code pattern around DHCSR read as offered by the convenience
helper cortex_m_read_dhcsr_atomic_sticky().
Use the helper.
Change-Id: Ia947204944a8b549f3c2be7fb2f717aad18970c4
SeeAlso: 65d762918328 (cortex_m: poll S_REGRDY on register r/w)
SeeAlso: 0dcf95c7171b (target/cortex_m: cumulate DHCSR sticky bits)
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6767
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/helper/command.c')
0 files changed, 0 insertions, 0 deletions