[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruct
From: |
Petr Hluzín |
Subject: |
Re: [Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruction only if executed on a non-XMega MCU. |
Date: |
Wed, 4 Jan 2012 21:50:46 +0100 |
(This patch fixes bug https://savannah.nongnu.org/bugs/?35195)
Patch applied. Thanks.
http://git.savannah.gnu.org/cgit/simulavr.git/commit/?id=ae8b9a718b07514acda7fe6368b1e08302eaaf52
On 30 December 2011 10:43, Stan Behrens
<address@hidden> wrote:
> ---
> 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 = new_pc - 1;
>
> - return core->PC_size + core->flagXMega ? 0 : 1;
> + return core->PC_size + (core->flagXMega ? 0 : 1);
> }
>
> avr_op_IJMP::avr_op_IJMP(word opcode, AvrDevice *c):
> --
> 1.7.5.4
>
>
> _______________________________________________
> Simulavr-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/simulavr-devel
--
Petr Hluzin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruction only if executed on a non-XMega MCU.,
Petr Hluzín <=