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>
This commit is contained in:
Damien Lespiau
2013-01-30 12:31:45 +00:00
parent 888b2dcae6
commit d008064b3e
4 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -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);
}