diff options
author | Marc Schink <openocd-dev@marcschink.de> | 2019-02-26 14:00:30 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-03-06 16:09:44 +0000 |
commit | 92f51c50ae41732ba287ea8ee4a4cdeb54e313ee (patch) | |
tree | 004df1ee6987f5bc7ab700f3a7ba71670156cb9a | |
parent | 351ef7bf3cce048ec854c8d19d8af5aa2b97c3a9 (diff) | |
download | riscv-openocd-92f51c50ae41732ba287ea8ee4a4cdeb54e313ee.zip riscv-openocd-92f51c50ae41732ba287ea8ee4a4cdeb54e313ee.tar.gz riscv-openocd-92f51c50ae41732ba287ea8ee4a4cdeb54e313ee.tar.bz2 |
target/register: Use 'bool' data type
Change-Id: I3633ced9cb2bfe6afb0ef49aa42fd1b54f155a66
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/4951
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r-- | src/target/register.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/register.c b/src/target/register.c index 8506414..5352d2f 100644 --- a/src/target/register.c +++ b/src/target/register.c @@ -88,8 +88,8 @@ void register_cache_invalidate(struct reg_cache *cache) for (unsigned n = cache->num_regs; n != 0; n--, reg++) { if (reg->exist == false) continue; - reg->valid = 0; - reg->dirty = 0; + reg->valid = false; + reg->dirty = false; } } @@ -100,8 +100,8 @@ static int register_get_dummy_core_reg(struct reg *reg) static int register_set_dummy_core_reg(struct reg *reg, uint8_t *buf) { - reg->dirty = 1; - reg->valid = 1; + reg->dirty = true; + reg->valid = true; return ERROR_OK; } |