Re: Using gdb as PPC simulator

Ben Elliston <[email protected]>
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
"Gabi Istrail" <[email protected]> writes:

> I'm looking into using gdb's PowerPC simulator capability for ASIC
> simulation and I have questions regarding the feasibility of such an
> endeavor.  How difficult is it to extend gdb to enable simulation of
> custom logic and peripherals? Does it provide hooks so one can
> specify that a write to a particular address triggers some simulated
> behavior in a peripheral?

Yes, PSIM has a bus interface and you can map custom devices into
certain address ranges.  From the sim/ppc/README:

	IO Hardware

		PSIM's internals are based around the concept
		of a Device Tree.  This tree intentionally
		resembles that of the Device Tree found in
		OpenBoot firmware.  PSIM is flexible enough
		to allow the user to fully configure this device
		tree (and consequently the hardware model) at
		run time.

Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.