address maps in PSIM
Kulpinski, Jay
Jay.Kulpinski@gd-ais.com
Wed Oct 2 10:15:00 GMT 2002
On Tuesday 01 October 2002 04:05 pm, mwette@grover.jpl.nasa.gov wrote:
> Hello. I am working powerpc-eabi with gcc-2.95.3, binutils-2.12.1,
> gdb-5.2, newlib-1.10.0 on SuSE 7.2. I have been working successfully
> with "-e bug", the MOTBUG OEA environment. I now want to progress
> to a custom environment, starting with the "com" device. When I run
> a sample program I get the following error:
>
> $ powerpc-eabi-run -f tree.kos5b load5
> core_find_mapping() - access to unmaped address,
> attach a default map to handle this
> - addr=0xf0003005 nr_bytes=0x1 processor=0x40141008 cia=0x57c0
>
> The file tree.kos5b (with some cruft from trial-n-error) is ...
>
> /#address-cells 2
> /cpus/cpu@0
> /openprom/options
> ./oea-memory-size 0x400000
> /memory@0/available 0 0x400000
> /memory@0/reg 0 0x400000
> /chosen
> /packages
> /iobus@0xf0000000
> /iobus@0xf0000000/reg 0xf0000000 0x01000000
> /iobus@0xf0000000/com@0xf0004000/reg 0xf0004000 8
> /iobus@0xf0000000/com@0xf0004000 > 0 int /cpus/cpu@0x0
>
> My guess is that I need to add memory map for the iobus.
> If this is this right, how do I do it?
> If not, what do I need to do?
>
> Any help would be appreciated.
>
> Thanks,
> Matt
Look in the PSIM tests archive for example device trees:
ftp://sources.redhat.com/pub/psim/psim-test-1998-11-20.tar.gz
The tree used for the com device test is:
/#address-cells 1
/cpus/cpu@0
/iobus@0xf0000000/com@0xf0004000/reg 0xf0004000 8
/iobus@0xf0000000/com@0xf0004000/input-file cat.c
/iobus@0xf0000000/com@0xf0004000/input-delay 100
/iobus@0xf0000000/com@0xf0004000 > 0 int /cpus/cpu@0x0
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list