summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-22 10:20:14 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-22 10:27:29 -0800
commit1c619a2f12cbfe1887824d41e68e85a1c4f5a8b3 (patch)
treec4ee9d06440e5a6ed25b5665097c0b1f07af450f /src/target
parentab5ac33fd462c37e4cf5a6bc1fe5fd0631e44469 (diff)
downloadopenocd+libswd-1c619a2f12cbfe1887824d41e68e85a1c4f5a8b3.tar.gz
openocd+libswd-1c619a2f12cbfe1887824d41e68e85a1c4f5a8b3.tar.bz2
openocd+libswd-1c619a2f12cbfe1887824d41e68e85a1c4f5a8b3.tar.xz
openocd+libswd-1c619a2f12cbfe1887824d41e68e85a1c4f5a8b3.zip
target: make register flags "bool"
Mostly for clarity, but it also saves code and data space. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/register.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/register.h b/src/target/register.h
index 0f8f2f4e..0cd0ddfe 100644
--- a/src/target/register.h
+++ b/src/target/register.h
@@ -29,8 +29,8 @@ struct reg
{
char *name;
void *value;
- int dirty;
- int valid;
+ bool dirty;
+ bool valid;
uint32_t size;
void *arch_info;
const struct reg_arch_type *type;