aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>2018-03-08 14:40:10 +0100
committerMatthias Welwarsky <matthias@welwarsky.de>2018-03-27 09:15:27 +0100
commit0808c6e8a3bd82316988d3d86bd6b212eefff6a2 (patch)
treee1a2506cdb1a640e719c4d960e682f91bc6f9f93 /src/target
parent78a44055c50f4ea10ebb14714c4b6563cd64f71b (diff)
downloadriscv-openocd-0808c6e8a3bd82316988d3d86bd6b212eefff6a2.zip
riscv-openocd-0808c6e8a3bd82316988d3d86bd6b212eefff6a2.tar.gz
riscv-openocd-0808c6e8a3bd82316988d3d86bd6b212eefff6a2.tar.bz2
tdesc: bitfields may carry a type
a bitfield may carry a type (bool or int), add support for that. Change-Id: Ic831a9b8eac8579e8fdd7d0f01b7f1c9259e6739 Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/4459 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/register.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/register.h b/src/target/register.h
index dc18e9a..32c1f39 100644
--- a/src/target/register.h
+++ b/src/target/register.h
@@ -25,12 +25,14 @@
struct target;
enum reg_type {
+ REG_TYPE_BOOL,
REG_TYPE_INT,
REG_TYPE_INT8,
REG_TYPE_INT16,
REG_TYPE_INT32,
REG_TYPE_INT64,
REG_TYPE_INT128,
+ REG_TYPE_UINT,
REG_TYPE_UINT8,
REG_TYPE_UINT16,
REG_TYPE_UINT32,
@@ -66,6 +68,7 @@ struct reg_data_type_union {
struct reg_data_type_bitfield {
uint32_t start;
uint32_t end;
+ enum reg_type type;
};
struct reg_data_type_struct_field {