[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 =

[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

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.

2012-01-04 Thread Stan Behrens
Hi Klaus, On 30/12/11 15:50, Klaus Rudolph wrote: Which is the main usage for the break instruction. [...] Do you need more breakpoints? Yes, I need more than the 2 hardware assisted breakpoints/watchdogs. If I just add more breakpoints in avr-gdb the JTAG MkII Debugger slows down system clock

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

2012-01-04 Thread Stan Behrens
Hi Petr, On 04/01/12 22:57, Petr HluzĂ­n wrote: What do you use the instruction for? As I already wrote, I need more than the limited hardware assisted break-/watchpoints while maintaining full MCU speed. Another positiv point for me is, in the seldom cases where my code hints the break

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

2012-01-11 Thread Stan Behrens
TODO: Check if execution is continuable on a real MCU. --- src/avrdevice.cpp |6 ++ src/decoder.cpp |9 + src/decoder.h | 19 +++ src/decoder_trace.cpp |6 ++ 4 files changed, 36 insertions(+), 4 deletions(-) diff --git

[Simulavr-devel] [PATCH] FIX: Remove delayed ISR calls when clearing the interrupt's flag.

2012-01-12 Thread Stan Behrens
If interrupts are globally disabled and a condition occurs where an ISR would be executed, they will be delayed until interrupts are enabled again (SEI or RETI). On a real MCU the interrupt's condition is saved in hardware through the wiring of the MCU. In the simulator we have a sorted list for

Re: [Simulavr-devel] [PATCH] FIX: Remove delayed ISR calls when clearing the interrupt's flag.

2012-01-12 Thread Stan Behrens
Hi List, use this simpler example to test the bug. Bye, Stan. #include avr/io.h #include avr/interrupt.h #include assert.h #include stdlib.h int main(void) { TIMSK = (1 OCIE2); // Enable the TIMER2_COMP_vect ISR. TCCR2 = (1 CS20); // Start Timer2 with Prescaler set to 1.

Re: [Simulavr-devel] [PATCH] FIX: Removed delayed ISR calls when clearing the interrupt's flag.

2012-01-12 Thread Stan Behrens
Hi List, something wrong with this patch? Bye, Stan. ___ Simulavr-devel mailing list Simulavr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Re: [Simulavr-devel] dump manager and special trace options

2013-01-25 Thread Stan Behrens
Hi Klaus, I used the -c option once, actually it's a while ago but I can remember that I had to take a look at the source as well. I still have the details, so hopefully you don't have to look it up yourself. The tracing option gives you the exact cpu-cycle-count at which a new value was