Merging that changes from the main branch
Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
case 0xf000: {
switch (opcode & 0xfe00) {
case 0xf100: { /* simavr special opcodes */
- if (opcode == 0xf1f1) { // AVR_OVERFLOW_OPCODE
+ if (opcode == 0xf1f1) emit { // AVR_OVERFLOW_OPCODE
printf("FLASH overflow, soft reset\n");
new_pc = 0;
TRACE_JUMP();
- }
+ } end_emit;
} break;
case 0xf000:
case 0xf200:
case 0xf000: {
switch (opcode & 0xfe00) {
+ case 0xf100: { /* simavr special opcodes */
+ if (opcode == 0xf1f1) { // AVR_OVERFLOW_OPCODE
+jit_generate(opcode, 0+F_JUMP+F_NO_PC,
+"printf(\"FLASH overflow, soft reset\\n\");\n"
+"new_pc = 0;\n"
+"TRACE_JUMP();\n"
+);
+ } break;
+ } break;
case 0xf000:
case 0xf200:
case 0xf400: