This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
psim hw devices
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: <gdb at sourceware dot org>
- Date: Tue, 2 Sep 2008 12:36:44 -0500
- Subject: psim hw devices
Hi,
Out of curiousity, when was the last time someone
verified any hardware device simulation in psim
works?
I am trying to us the eeprom device. My device tree
is based on the one in the top of hw_eeprom.c:
==============================================
/#address-cells 4
/openprom/init/register/pvr 0xfffe0000
/openprom/options/oea-memory-size 8388608
/eeprom@0xE0000000/reg 0xE0000000 0x80000
/eeprom@0xE0000000/nr-sectors 8
/eeprom@0xE0000000/sector-size 0x10000
/eeprom@0xE0000000/byte-write-delay 1000
/eeprom@0xE0000000/sector-start-delay 100
/eeprom@0xE0000000/erase-delay 1000
/eeprom@0xE0000000/manufacture-code 0x01
/eeprom@0xE0000000/device-code 0xa4
==============================================
I think the device is registered correctly with psim
but can't seem to find the magic spot where psim can't
find the memory region before it triggers
a protection exception.
Suggestions and advice on debugging this appreciated.
Thanks.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985