--- trunk/src/cpus/generate_head.c 2007/10/08 16:19:11 18 +++ trunk/src/cpus/generate_head.c 2007/10/08 16:19:23 20 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: generate_head.c,v 1.7 2005/10/27 14:01:13 debug Exp $ + * $Id: generate_head.c,v 1.8 2005/11/06 22:41:12 debug Exp $ */ #include @@ -138,10 +138,16 @@ /* TODO: solve this in a nicer way! */ if (strcmp(a, "avr") == 0) printf("static struct %s_instr_call nothing_call = { " - "instr(nothing), {0,0} };\n", a); - else + "instr(nothing), 0, {0,0} };\n", a); + else { + printf("#ifdef DYNTRANS_VARIABLE_INSTRUCTION_LENGTH\n"); + printf("static struct %s_instr_call nothing_call = { " + "instr(nothing), 0, {0,0,0} };\n", a); + printf("#else\n"); printf("static struct %s_instr_call nothing_call = { " "instr(nothing), {0,0,0} };\n", a); + printf("#endif\n"); + } printf("\n");