add .text.startup section
This commit is contained in:
@@ -479,6 +479,8 @@ always @(posedge clk) begin: pipeline_update
|
|||||||
end
|
end
|
||||||
|
|
||||||
end else begin
|
end else begin
|
||||||
|
// $display("%0t:\tPC=0x%h", $time, s_if_next_pc);
|
||||||
|
|
||||||
// IF
|
// IF
|
||||||
if (!s_if_stall) begin
|
if (!s_if_stall) begin
|
||||||
r_if_pc <= s_if_next_pc;
|
r_if_pc <= s_if_next_pc;
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
OUTPUT_ARCH( "riscv" )
|
OUTPUT_ARCH( "riscv" )
|
||||||
ENTRY(_start)
|
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
@@ -14,6 +13,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
/* . = ALIGN(4); */
|
/* . = ALIGN(4); */
|
||||||
_text = .;
|
_text = .;
|
||||||
|
*(.text.startup)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
@@ -1,9 +1,17 @@
|
|||||||
.global _start
|
.global _start
|
||||||
|
|
||||||
|
.section .text.startup # start vector
|
||||||
|
j _start
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
|
||||||
.text
|
.text
|
||||||
_start:
|
_start:
|
||||||
|
|
||||||
addi a0, zero, 0x134
|
addi a0, zero, 0x134
|
||||||
|
addi a1, zero, 0x0
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
Reference in New Issue
Block a user