This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Add support for RedBoot SWIs to ARM Simulator
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Thu, 09 May 2002 11:22:07 +0100
- Subject: Re: Add support for RedBoot SWIs to ARM Simulator
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
Hi Guys,
I am applying the patch below to add support for the SWI used by
RedBoot to implement some of its system calls. The patch only
supports those system calls already supported by the simulator's
Angel and Demon SWI protocol support.
Note - it is not possible to support the RedBoot SWI in Thumb mode,
since this SWI value - 0x18 - is also the thumb breakpoint value
used by GDB.
This may trample on the toes of somebody using that SWI as a real trap
into an OS. We probably should have a way of configuring the simulator at
run-time to allow emulation of a set of SWI values. Either from a
command-line switch (for the arm-...-run command) or a gdb hook (for use
within gdb).
Something like:
arm-elf-run -emul-swi={redboot|angel|demon|none}
R.