Skip to content

Commit

Permalink
minor edit in start-up code
Browse files Browse the repository at this point in the history
very first instruction is now "lui zero, 0" (just another dummy)
  • Loading branch information
stnolting committed Jul 22, 2021
1 parent 8b8da12 commit 74ea46a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rtl/core/neorv32_application_image.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use neorv32.neorv32_package.all;
package neorv32_application_image is

constant application_init_image : mem32_t := (
00000000 => x"00000013",
00000000 => x"00000037",
00000001 => x"80002117",
00000002 => x"ff810113",
00000003 => x"80000197",
Expand Down
6 changes: 3 additions & 3 deletions rtl/core/neorv32_bootloader_image.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use neorv32.neorv32_package.all;
package neorv32_bootloader_image is

constant bootloader_init_image : mem32_t := (
00000000 => x"00000013",
00000000 => x"00000037",
00000001 => x"80010117",
00000002 => x"1f810113",
00000003 => x"80010197",
Expand Down Expand Up @@ -985,8 +985,8 @@ package neorv32_bootloader_image is
00000971 => x"0a3e3e20",
00000972 => x"444c420a",
00000973 => x"4a203a56",
00000974 => x"33206e75",
00000975 => x"30322030",
00000974 => x"32206c75",
00000975 => x"30322032",
00000976 => x"480a3132",
00000977 => x"203a5657",
00000978 => x"00000020",
Expand Down
3 changes: 2 additions & 1 deletion sw/common/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ _start:
.cfi_startproc
.cfi_undefined ra

nop
lui zero, 0 // dummy instruction that uses no reg-file operands at all


// ************************************************************************************************
// Setup pointers using linker script symbols
Expand Down

0 comments on commit 74ea46a

Please sign in to comment.