[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] RJMP/RCALL/BRBC/BRBS bug & configure error in simulavr-
From: |
Thibaud Gaillard |
Subject: |
[Simulavr-devel] RJMP/RCALL/BRBC/BRBS bug & configure error in simulavr-0.1.1, test-case and fix provided |
Date: |
Tue Oct 8 11:18:01 2002 |
User-agent: |
IMP/PHP IMAP webmail program 2.2.6 |
Hi,
Playing a bit with GCC-generated AVR code, I found simulavr-0.1.1
to fail when it comes to handle negative relative jumps that cross
the memory low boundary (still works fine crossing the high boundary).
This bug impacts RJMP/RCALL/BRBC/BRBS opcodes (jump instructions with
relative signed offsets).
There is also a "configure" script problem, at least on a sparc-sun-solaris2.x
host (/bin/sh does not handle "==" in "test" constructs, only "=").
Test-case (rjump_bug.s) and fix (simulavr-0.1.1.patch) both for "configure"
and "src/avrcore.c" provided.
Thibaud
PS: Theodore, I chose to resend this mail to the official mailing list,
please forgive me for the double posting inconvenience :-)
rjmp_bug.s
Description: Binary data
simulavr-0.1.1.patch
Description: Binary data
- [Simulavr-devel] RJMP/RCALL/BRBC/BRBS bug & configure error in simulavr-0.1.1, test-case and fix provided,
Thibaud Gaillard <=