Fixed xcore header to comply with bindings

and fixed whitespace
This commit is contained in:
Inokentiy Babushkin 2016-04-07 12:23:56 +02:00
parent 16a67a9c6d
commit 318607af63
3 changed files with 6 additions and 4 deletions

View File

@ -180,7 +180,7 @@ typedef enum sparc_reg {
// This is associated with SPARC_OP_MEM operand type above
typedef struct sparc_op_mem {
uint8_t base; // base register, can be safely interpreted as
// a value of type `sparc_reg`, but it is only
// a value of type `sparc_reg`, but it is only
// one byte wide
uint8_t index; // index register, same conditions apply here
int32_t disp; // displacement/offset value

View File

@ -91,7 +91,7 @@ typedef enum sysz_reg {
// This is associated with SYSZ_OP_MEM operand type above
typedef struct sysz_op_mem {
uint8_t base; // base register, can be safely interpreted as
// a value of type `sysz_reg`, but it is only
// a value of type `sysz_reg`, but it is only
// one byte wide
uint8_t index; // index register, same conditions apply here
uint64_t length; // BDLAddr operand

View File

@ -64,8 +64,10 @@ typedef enum xcore_reg {
// Instruction's operand referring to memory
// This is associated with XCORE_OP_MEM operand type above
typedef struct xcore_op_mem {
xcore_reg base; // base register
xcore_reg index; // index register
uint8_t base; // base register, can be safely interpreted as
// a value of type `xcore_reg`, but it is only
// one byte wide
uint8_t index; // index register, same conditions apply here
int32_t disp; // displacement/offset value
int direct; // +1: forward, -1: backward
} xcore_op_mem;