Change stackpoint to h0001_0000.
This commit is contained in:
parent
a015d7d595
commit
f714dd5da4
|
@ -10,12 +10,12 @@ means.
|
|||
MEMORY {
|
||||
/* the memory in the testbench is 128k in size;
|
||||
* set LENGTH=96k and leave at least 32k for stack */
|
||||
mem : ORIGIN = 0x00000000, LENGTH = 0x00018000
|
||||
mem : ORIGIN = 0x00000000, LENGTH = 0x00040000
|
||||
}
|
||||
|
||||
SECTIONS {
|
||||
.memory : {
|
||||
. = 0x000000;
|
||||
. = 0x10000;
|
||||
start*(.text);
|
||||
*(.text);
|
||||
*(*);
|
||||
|
|
|
@ -378,7 +378,7 @@ start:
|
|||
|
||||
#ifdef ENABLE_HELLO
|
||||
/* set stack pointer */
|
||||
lui sp,(128*1024)>>12
|
||||
lui sp,(64*1024)>>12
|
||||
|
||||
/* call hello C code */
|
||||
jal ra,hello
|
||||
|
@ -455,7 +455,7 @@ start:
|
|||
TEST(simple)
|
||||
|
||||
/* set stack pointer */
|
||||
lui sp,(128*1024)>>12
|
||||
lui sp,(64*1024)>>12
|
||||
|
||||
/* set gp and tp */
|
||||
lui gp, %hi(0xdeadbeef)
|
||||
|
|
|
@ -198,9 +198,9 @@ module picorv32_wb #(
|
|||
.ENABLE_TRACE(1),
|
||||
.MASKED_IRQ(32'h0000_0000),
|
||||
.LATCHED_IRQ(32'hffff_ffff),
|
||||
.PROGADDR_RESET(32'h0000_0000),
|
||||
.PROGADDR_IRQ(32'h0000_0010),
|
||||
.STACKADDR(32'hffff_ffff)
|
||||
.PROGADDR_RESET(32'h0001_0000),
|
||||
.PROGADDR_IRQ(32'h0001_0010),
|
||||
.STACKADDR(32'h0001_0000)
|
||||
) picorv32_core (
|
||||
.clk (clk),
|
||||
.resetn(resetn),
|
||||
|
|
Loading…
Reference in New Issue