diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-05-28 11:54:51 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-06-22 05:14:08 -0400 |
commit | 6edaf4d75b45ff08d7296095506904663b8f0576 (patch) | |
tree | 5d42377bc74bef5c112e4aafc423359ef3fc3b70 /include | |
parent | b0b793434ef492aa5afc95e0a9f787bdf860a1c1 (diff) | |
download | gdb-6edaf4d75b45ff08d7296095506904663b8f0576.zip gdb-6edaf4d75b45ff08d7296095506904663b8f0576.tar.gz gdb-6edaf4d75b45ff08d7296095506904663b8f0576.tar.bz2 |
tilegx: move TILEGX_NUM_PIPELINE_ENCODINGS to tilegx_pipeline enum
Its closely related to what the encodings are, more than a set of random
constants, so it seems to make sense to put it here.
include/ChangeLog:
2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* opcode/tilegx.h: Move TILEGX_NUM_PIPELINE_ENCODINGS into
tilegx_pipeline.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/opcode/tilegx.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index a9f380f..58f279f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> + + * opcode/tilegx.h: Move TILEGX_NUM_PIPELINE_ENCODINGS into + tilegx_pipeline. + 2016-06-21 Graham Markall <graham.markall@embecosm.com> * opcode/arc.h: Add nps400 extension and instruction diff --git a/include/opcode/tilegx.h b/include/opcode/tilegx.h index 3490583..5985410 100644 --- a/include/opcode/tilegx.h +++ b/include/opcode/tilegx.h @@ -1130,6 +1130,7 @@ typedef enum TILEGX_PIPELINE_Y0, TILEGX_PIPELINE_Y1, TILEGX_PIPELINE_Y2, + TILEGX_NUM_PIPELINE_ENCODINGS = 5, } tilegx_pipeline; #define tilegx_is_x_pipeline(p) ((int)(p) <= (int)TILEGX_PIPELINE_X1) @@ -1150,9 +1151,6 @@ enum /* Maximum number of instructions in a bundle (2 for X, 3 for Y). */ TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE = 3, - /* How many different pipeline encodings are there? X0, X1, Y0, Y1, Y2. */ - TILEGX_NUM_PIPELINE_ENCODINGS = 5, - /* Log base 2 of TILEGX_BUNDLE_SIZE_IN_BYTES. */ TILEGX_LOG2_BUNDLE_SIZE_IN_BYTES = 3, |