Re: [Simulavr-devel] [PATCH] Add BREAK-instruction, causes simulavr to halt.

2011-12-30 Thread Klaus Rudolph
Stan Behrens wrote: > Please have a look at [1]. The BREAK-Instruction is indeed part of the > AVR instruction set. Oh yes, I have never seen this before. > > But you're right. My patch behaves badly, because it does not care about > Fuses and the BREAK instruction is not understood by every

Re: [Simulavr-devel] [PATCH] Add BREAK-instruction, causes simulavr to halt.

2011-12-30 Thread Stan Behrens
Hi Klaus, Please have a look at [1]. The BREAK-Instruction is indeed part of the AVR instruction set. But you're right. My patch behaves badly, because it does not care about Fuses and the BREAK instruction is not understood by every AVR device. For me it was just a quick fix to get my binaries

Re: [Simulavr-devel] [PATCH] Add BREAK-instruction, causes simulavr to halt.

2011-12-30 Thread Klaus Rudolph
Hi, I can't see a reason to add a pseudo break instruction. Breakpoints handled in simulavr with a address table which works together with gdb. To stop the execution of simuavr without gdb there is already a command line option. Building different binaries for real target and simulation is exact

[Simulavr-devel] [PATCH] Add BREAK-instruction, causes simulavr to halt.

2011-12-30 Thread Stan Behrens
TODO: Check if execution is continuable on a real MCU. --- src/decoder.cpp |9 + src/decoder.h | 20 src/decoder_trace.cpp |6 ++ 3 files changed, 35 insertions(+), 0 deletions(-) diff --git a/src/decoder.cpp b/src/decoder.cpp index f7cf3cb

[Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruction only if executed on a non-XMega MCU.

2011-12-30 Thread Stan Behrens
--- src/decoder.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/decoder.cpp b/src/decoder.cpp index f350c26..eb12f30 100644 --- a/src/decoder.cpp +++ b/src/decoder.cpp @@ -716,7 +716,7 @@ int avr_op_ICALL::operator()() { core->DebugOnJump(); core->PC = n

[Simulavr-devel] [bug #35195] ICALL simulation: wrong cycles

2011-12-30 Thread anonymous
URL: Summary: ICALL simulation: wrong cycles Project: Simulavr: an AVR simulator Submitted by: None Submitted on: Fr 30 Dez 2011 09:12:24 UTC Category: Simulation Se