aboutsummaryrefslogtreecommitdiff
path: root/src/helper/command.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-06-13 11:52:50 -0700
committerTim Newsome <tim@sifive.com>2017-06-13 11:52:50 -0700
commit845c2f6b692736d3f6ee113908b98cb60ec60119 (patch)
tree32b9315ff67d97c397184dfe98b7523fed95dcb1 /src/helper/command.h
parent7af58e6283c8e7d350b6b55c93a1d326326ed831 (diff)
parent1025be363e2bf42f1613083223a2322cc3a9bd4c (diff)
downloadriscv-openocd-845c2f6b692736d3f6ee113908b98cb60ec60119.zip
riscv-openocd-845c2f6b692736d3f6ee113908b98cb60ec60119.tar.gz
riscv-openocd-845c2f6b692736d3f6ee113908b98cb60ec60119.tar.bz2
Merge branch 'remotes/openocd/master' into riscv64
Merged 1025be363e2bf42f1613083223a2322cc3a9bd4c Conflicts: src/flash/nor/Makefile.am src/rtos/Makefile.am src/rtos/rtos.c src/target/Makefile.am src/target/target.c src/target/target_type.h Doesn't build yet, but I fixed the conflicts that git pointed out.
Diffstat (limited to 'src/helper/command.h')
-rw-r--r--src/helper/command.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/command.h b/src/helper/command.h
index 5c39660..bd24156 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -357,10 +357,13 @@ DECLARE_PARSE_WRAPPER(_u16, uint16_t);
DECLARE_PARSE_WRAPPER(_u8, uint8_t);
DECLARE_PARSE_WRAPPER(_int, int);
+DECLARE_PARSE_WRAPPER(_s64, int64_t);
DECLARE_PARSE_WRAPPER(_s32, int32_t);
DECLARE_PARSE_WRAPPER(_s16, int16_t);
DECLARE_PARSE_WRAPPER(_s8, int8_t);
+DECLARE_PARSE_WRAPPER(_target_addr, target_addr_t);
+
/**
* @brief parses the string @a in into @a out as a @a type, or prints
* a command error and passes the error code to the caller. If an error
@@ -382,6 +385,9 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t);
} \
} while (0)
+#define COMMAND_PARSE_ADDRESS(in, out) \
+ COMMAND_PARSE_NUMBER(target_addr, in, out)
+
/**
* Parse the string @c as a binary parameter, storing the boolean value
* in @c out. The strings @c on and @c off are used to match different