|
Message
From: patrik.thalin@s...<patrik.thalin@s...>
Date: Mon Jan 17 15:25:15 CET 2005
Subject: [openrisc] simulation problems
Problem fixed. I changed the memory section in sim.cfg to:section memory type = unknown
nmemories = 1 device 0 name = "RAM" ce = 0 baseaddr = 0x00000000 size = 0x00800000 delayr = 1 delayw = 1 enddevice end
----- Original Message ----- From: patrik.thalin@s...<patrik.thalin@s...> To: Date: Thu Jan 13 10:41:37 CET 2005 Subject: [openrisc] simulation problems
> Hi all, > I try to run this simple program to set up the tools. I also reused > the files from hello-uart (mc.h, board.h, reset.S ...) to compile > it. > #include "board.h" > int main() > { > int i; > i = 5; > } > the asignment compile to: > l.addi r3,r0,0x5 > l.sw 0xfffffffc(r2),r3 > When i run it and try to print i in gdb it has the value 0 and not > 5 > after the asignment. > I also get thim message from the simulator: > WARNING: memory write to 0xffffffd0, non-write memory area (value > 0x00000005) > What is going wrong? > >
|
 |