Changes between Version 2 and Version 3 of Component/Sparcv8


Ignore:
Timestamp:
Apr 27, 2009, 1:54:28 AM (15 years ago)
Author:
polti
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Sparcv8

    v2 v3  
    1212 * the ASI is currently not supported
    1313 * an optional FP is provided through a compilation flag (FPU, enabled by default)
     14 * [wiki:Tools/GdbServer gdb server] is under development.
    1415
    1516= Component definition & implementation =
     
    3233 
    3334This component has one template parameter :
    34   * NWIN (int) : the number of windows. By default : 8
     35  * {{{NWIN}}} (int) : the number of windows. By default : 8
    3536
    3637== Interrupts ==
     
    4243None, it is to the wrapper to provide them.
    4344
    44 = LDSTUB and SWAP support =
     45= Notes =
     46
     47== LDSTUB and SWAP support ==
    4548
    4649SoCLib infrastructure doesn't support directly SWAP and LDSTUB instructions. Thus they are emulated through SC and LL extended accesses.
     
    5255  * these instructions are only supported on a word granularity : ensure that every variables involved in SWAP and LDSTUB access are in different word
    5356  * these instructions require a change in the caches behaviour, which is currently pending. In the mean time, a workaround is to flush the cache after every SWAP / LDSTUB.
     57
     58== Compiling programs for Sparc v8 with SoCLib ==
     59
     60Before compiling a program for the Sparc v8 with the SoCLib framework you will need to define some system variables (usually on the ~/.soclib/soft_compilers.conf) needed to find the Sparc compiler. Below you have an example:
     61{{{
     62sparc_CC_PREFIX = sparc-unknown-elf-
     63sparc_CFLAGS = -O2 -g -mcpu=v8 -mfpu  -msoft-quad-float
     64sparc_LDFLAGS =
     65}}}