Skip to content

Commit

Permalink
Merge pull request #397 from stnolting/cleanup_crt0
Browse files Browse the repository at this point in the history
[sw} cleanup crt0 start-up code
  • Loading branch information
stnolting authored Aug 26, 2022
2 parents 680ca8b + 57a2ccc commit 9a10759
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 71 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mimpid = 0x01040312 => 01.04.03.12 => Version 01.04.03.12 => v1.4.3.12

| Date (*dd.mm.yyyy*) | Version | Comment |
|:-------------------:|:-------:|:--------|
| 26.08.2022 | 1.7.5.8 | cleanup **crt0** start-up code: remove setup of `mcountern` and `mcountinhibit` CSRs; [#397](https://github.com/stnolting/neorv32/pull/397) |
| 24.08.2022 | 1.7.5.7 | minor rtl cleanups [#396](https://github.com/stnolting/neorv32/pull/396) |
| 20.08.2022 | 1.7.5.6 | :sparkles: update software framework to GCC 12.1.0 (new prebuilt toolchains available!) [#391](https://github.com/stnolting/neorv32/pull/391) |
| 18.08.2022 | 1.7.5.5 | :lock: add **TRNG** read data protection; [#389](https://github.com/stnolting/neorv32/pull/389) |
Expand Down
2 changes: 1 addition & 1 deletion docs/datasheet/software.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ phase where the application might not provide a trap handling yet.
** All interrupt sources are disabled and all pending interrupts are cleared.
. Initialize the global pointer `gp` and the stack pointer `sp` according to the <<_ram_layout>> provided by the linker script.
during the early boot phase.
. Clear all counter CSRs and stop auto-increment.
. Clear <<_cycleh>> and <<_instreth>> counter CSRs.
. Clear the `.bss` section defined by the linker script.
. Copy read-only data from the `.text` section to the `.data` section to set initialized variables.
. Call and execute all _constructors_ (if there are any)
Expand Down
26 changes: 12 additions & 14 deletions rtl/core/neorv32_application_image.vhd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- The NEORV32 RISC-V Processor: https://github.com/stnolting/neorv32
-- Auto-generated memory initialization file (for APPLICATION) from source file <blink_led/main.bin>
-- Size: 1016 bytes
-- Size: 1008 bytes
-- MARCH: default
-- Built: 20.08.2022 18:15:44
-- Built: 26.08.2022 15:55:14

-- prototype defined in 'neorv32_package.vhd'
package body neorv32_application_image is
Expand All @@ -14,13 +14,11 @@ x"ff810113",
x"80000197",
x"7f418193",
x"00000517",
x"13050513",
x"12850513",
x"30551073",
x"30001073",
x"30401073",
x"34401073",
x"32001073",
x"30601073",
x"b0001073",
x"b8001073",
x"b0201073",
Expand All @@ -45,11 +43,11 @@ x"00000e13",
x"00000e93",
x"00000f13",
x"00000f93",
x"3f800593",
x"3f000593",
x"80000617",
x"f6860613",
x"f7060613",
x"80000697",
x"f6068693",
x"f6868693",
x"00c58e63",
x"00d65c63",
x"0005a703",
Expand All @@ -58,15 +56,15 @@ x"00458593",
x"00460613",
x"fedff06f",
x"80000717",
x"f3c70713",
x"f4470713",
x"80000797",
x"f3478793",
x"f3c78793",
x"00f75863",
x"00072023",
x"00470713",
x"ff5ff06f",
x"3f800413",
x"3f800493",
x"3f000413",
x"3f000493",
x"00945a63",
x"0009a083",
x"000080e7",
Expand All @@ -77,8 +75,8 @@ x"00000593",
x"088000ef",
x"30047073",
x"34051073",
x"3f800413",
x"3f800493",
x"3f000413",
x"3f000493",
x"00945a63",
x"00042083",
x"000080e7",
Expand Down
Loading

0 comments on commit 9a10759

Please sign in to comment.