diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-21 19:28:41 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:38 +0000 |
commit | a45a47183a98e07f7a44330cd68bf65fec8d6dea (patch) | |
tree | 7192a15ac245a9d340b429d5efaca1e8d185008b /assembler/disasm-main.c | |
parent | 73d58edab9fca04d9b00f9e1a9095bbbb00f25a4 (diff) |
assembler: Make explicit that labels are part of the instructions list
The output of the parsing is a list of struct brw_program_instruction.
These instructions can be either GEN instructions aka struct
brw_instruction or labels. To make this more explicit we now have a type
to test to determine which instruction we are dealing with.
This will also allow to to pull the relocation bits into struct
brw_program_instruction instead of having them in the structure
representing the opcodes.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/disasm-main.c')
-rw-r--r-- | assembler/disasm-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/disasm-main.c b/assembler/disasm-main.c index b900e91d..fbb6ae33 100644 --- a/assembler/disasm-main.c +++ b/assembler/disasm-main.c @@ -167,6 +167,6 @@ int main(int argc, char **argv) } for (inst = program->first; inst; inst = inst->next) - brw_disasm (output, &inst->instruction, gen); + brw_disasm (output, &inst->instruction.gen, gen); exit (0); } |