target: make register flags "bool"
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 22 Nov 2009 18:20:14 +0000 (10:20 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 22 Nov 2009 18:27:29 +0000 (10:27 -0800)
Mostly for clarity, but it also saves code and data space.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/register.h

index 0f8f2f4e0b1c8f09102c7fbf9ea30d95ed2774d6..0cd0ddfe467d91ce8406021204d4e1ecae434ef3 100644 (file)
@@ -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;