diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-30 12:31:45 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:41 +0000 |
commit | d008064b3ef6a85181a61e97f51a9b4c9319ddc8 (patch) | |
tree | 842ddfbb7e7dedf5ff32cafdab2ce8abd99ed1a8 /assembler/disasm-main.c | |
parent | 888b2dcae60cb2db0eb95adddfd894f58dc6dc89 (diff) |
assembler: Renamed the instruction field to insn
This will be less typing for the refactoring to come (which is use
struct brw_program_instruction in gram.y for the type of all the
instructions).
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/disasm-main.c')
-rw-r--r-- | assembler/disasm-main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assembler/disasm-main.c b/assembler/disasm-main.c index fbb6ae33..87e67377 100644 --- a/assembler/disasm-main.c +++ b/assembler/disasm-main.c @@ -51,7 +51,7 @@ read_program (FILE *input) ++n; if (n == 4) { entry = malloc (sizeof (struct brw_program_instruction)); - memcpy (&entry->instruction, inst, 4 * sizeof (uint32_t)); + memcpy (&entry->insn, inst, 4 * sizeof (uint32_t)); entry->next = NULL; *prev = entry; prev = &entry->next; @@ -82,7 +82,7 @@ read_program_binary (FILE *input) inst[n++] = (uint8_t)temp; if (n == 16) { entry = malloc (sizeof (struct brw_program_instruction)); - memcpy (&entry->instruction, inst, 16 * sizeof (uint8_t)); + memcpy (&entry->insn, inst, 16 * sizeof (uint8_t)); entry->next = NULL; *prev = entry; prev = &entry->next; @@ -167,6 +167,6 @@ int main(int argc, char **argv) } for (inst = program->first; inst; inst = inst->next) - brw_disasm (output, &inst->instruction.gen, gen); + brw_disasm (output, &inst->insn.gen, gen); exit (0); } |