Changeset 529154b in rtems


Ignore:
Timestamp:
Jul 31, 2018, 7:15:00 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8a78b784
Parents:
48cbd63
git-author:
Sebastian Huber <sebastian.huber@…> (07/31/18 07:15:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/01/18 08:08:59)
Message:

bsp/riscv: Initialize FPU depending on ISA

Initialize fcsr to zero for a defined rounding mode.

Update #3433.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/riscv/riscv/start/start.S

    r48cbd63 r529154b  
    4949        .option pop
    5050
    51         /* Init FPU unit if it's there */
     51        /* Init FPU */
     52#ifdef __riscv_flen
    5253        li      t0, MSTATUS_FS
    5354        csrs    mstatus, t0
     55        csrw    fcsr, zero
     56#endif
    5457
    5558        /* Set exception handler */
Note: See TracChangeset for help on using the changeset viewer.