OpenCores
no use no use 1/1 no use no use
simulation problems
by Unknown on Jan 13, 2005
Not available!
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?
simulation problems
by Unknown on Jan 17, 2005
Not available!
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?



no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.