Skip to content

Commit

Permalink
Use SRAM memory region instead of SRAM_NOCACHE
Browse files Browse the repository at this point in the history
`flw` and `fld` from the 0x4xxxxxxxx range always return 0.
This sabotages pretty much all floating point computation.
rust-embedded/riscv-rt#25 (comment)
  • Loading branch information
Disasm committed May 12, 2019
1 parent 643451d commit cb8be3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions memory.x
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
INCLUDE memory-k210.x

REGION_ALIAS("REGION_TEXT", SRAM_NOCACHE);
REGION_ALIAS("REGION_RODATA", SRAM_NOCACHE);
REGION_ALIAS("REGION_DATA", SRAM_NOCACHE);
REGION_ALIAS("REGION_BSS", SRAM_NOCACHE);
REGION_ALIAS("REGION_HEAP", SRAM_NOCACHE);
REGION_ALIAS("REGION_STACK", SRAM_NOCACHE);
REGION_ALIAS("REGION_TEXT", SRAM);
REGION_ALIAS("REGION_RODATA", SRAM);
REGION_ALIAS("REGION_DATA", SRAM);
REGION_ALIAS("REGION_BSS", SRAM);
REGION_ALIAS("REGION_HEAP", SRAM);
REGION_ALIAS("REGION_STACK", SRAM);

0 comments on commit cb8be3e

Please sign in to comment.