From d008064b3ef6a85181a61e97f51a9b4c9319ddc8 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 30 Jan 2013 12:31:45 +0000 Subject: 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 --- assembler/disasm-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'assembler/disasm-main.c') 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); } -- cgit v1.2.3