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>
This commit is contained in:
committed by
Matthias Welwarsky
parent
78a44055c5
commit
0808c6e8a3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user