--- trunk/src/cpus/cpu_avr_instr.c 2007/10/08 16:18:51 14 +++ trunk/src/cpus/cpu_avr_instr.c 2007/10/08 16:19:37 22 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Anders Gavare. All rights reserved. + * Copyright (C) 2005-2006 Anders Gavare. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,16 +25,11 @@ * SUCH DAMAGE. * * - * $Id: cpu_avr_instr.c,v 1.3 2005/09/17 22:34:52 debug Exp $ + * $Id: cpu_avr_instr.c,v 1.6 2006/02/09 22:40:27 debug Exp $ * * Atmel AVR (8-bit) instructions. * - * Individual functions should keep track of cpu->n_translated_instrs. Since - * AVR uses variable length instructions, cpu->cd.avr.next_ic must also be - * increased by the number of "instruction slots" that were executed. (I.e. - * if an instruction occupying 6 bytes was executed, then next_ic should be - * increased by 3.) - * + * Individual functions should keep track of cpu->n_translated_instrs. * (n_translated_instrs is automatically increased by 1 for each function * call. If no instruction was executed, then it should be decreased. If, say, * 4 instructions were combined into one function and executed, then it should @@ -204,6 +199,9 @@ X(to_be_translated) { int addr, low_pc, rd, rr, main_opcode; +#ifdef DYNTRANS_BACKEND + int simple = 0; +#endif uint16_t iword; unsigned char *page; unsigned char ib[2];