This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sim/2181: powerpcsim crt0 could not initialize register "sp" for MPC555


The following reply was made to PR sim/2181; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: muhavid@xko.cz
Cc: gdb-gnats@sources.redhat.com
Subject: Re: sim/2181: powerpcsim crt0 could not initialize register "sp" for MPC555
Date: Fri, 6 Oct 2006 10:31:19 -0400

 On Thu, Oct 05, 2006 at 09:27:57PM -0000, muhavid@xko.cz wrote:
 > I hav a problem with setting register "sp". This always happens:
 > 
 > Cannot access memory at address 0x3fb814
 > 
 > I've looked on the internet to find some hint but still without sucess. Can
 > somebody tell me what's wrong with my code.
 
 Are you using GDB or the sim directly?  Have you configured the sim?  I
 don't think it comes configured to a memory layout that looks like
 this:
 
 > MEMORY
 > {
 >     vector  :   org = 0x0000000,    len = 0x001EFF
 >     rom     :   org = 0x0002000,    len = 0x06FFFF
 >     ram     :   org = 0x03f9800,    len = 0x0067FF
 > }
 
 at all.
 
 I don't know much about psim but I think you have to give it a
 configuration telling it where your RAM is, in the Open Firmware device
 tree.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]