# HG changeset patch # User William Astle # Date 1457063535 25200 # Node ID 4c8925f97eb53f6ea167ed5db824fccae9704d29 # Parent f6e03c2cebfb2adf70ccc423d0babbde2548fce6 Fix bug identifying long branches in cycle counting code Long branch opcodes start at 0x1022 for conditional branches, not 0x1023. diff -r f6e03c2cebfb -r 4c8925f97eb5 lwasm/cycle.c --- a/lwasm/cycle.c Thu Oct 15 23:21:26 2015 -0600 +++ b/lwasm/cycle.c Thu Mar 03 20:52:15 2016 -0700 @@ -659,7 +659,7 @@ cl->cycle_adj = 0; // long branches are estimated on 6809 - if (CURPRAGMA(cl, PRAGMA_6809) && (opc >= 0x1023 && opc <= 0x102f)) + if (CURPRAGMA(cl, PRAGMA_6809) && (opc >= 0x1022 && opc <= 0x102f)) cl->cycle_flags |= CYCLE_ESTIMATED; return;