public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52261] New: [avr] Add support for AVR Xmega cores
@ 2012-02-15 12:33 gjl at gcc dot gnu.org
  2012-02-15 12:36 ` [Bug target/52261] " gjl at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-02-15 12:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52261

             Bug #: 52261
           Summary: [avr] Add support for AVR Xmega cores
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
                CC: eric.weddington@atmel.com
            Target: avr


Xmega core are special with respect to I-flag instruction and writing SPL (low
byte of stack pointer SP):

In old cores, setting I-flag by means of SEI/RETI/OUT has a latency of 1
instruction

In Xmega cores, setting I-flag by means of SEI/RETI/OUT has a latency of 0
instructions.

This, writing to SP by a sequence like

IN  tmp_reg, SREG
CLI
OUT SP_H, %B1
OUT SREG, tmp_reg
OUT SP_L, %A1

is no move correct because write of SP with that sequence is no more atomic.

Xmega's OUT SP_L,* inhibits IRQs for 4 instructions so that the following
sequence can be used instead to write to SP:

OUT SP_L, %A1
OUT SP_H, %B1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-28  9:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 12:33 [Bug target/52261] New: [avr] Add support for AVR Xmega cores gjl at gcc dot gnu.org
2012-02-15 12:36 ` [Bug target/52261] " gjl at gcc dot gnu.org
2012-02-15 13:16 ` gjl at gcc dot gnu.org
2012-02-20  4:33 ` fbi.sr at gmx dot de
2012-02-20 11:32 ` gjl at gcc dot gnu.org
2012-02-22  2:44 ` fbi.sr at gmx dot de
2012-02-23 20:13 ` gjl at gcc dot gnu.org
2012-02-24 16:29 ` gjl at gcc dot gnu.org
2012-02-28  8:53 ` gjl at gcc dot gnu.org
2012-02-28  9:14 ` gjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).