This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: ARM SIM - add support to select SWI emulations to support.
- 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: Fri, 17 May 2002 13:48:07 +0100
- Subject: Re: ARM SIM - add support to select SWI emulations to support.
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> +
> + extern unsigned int swi_mask;
> +
> + #define SWI_MASK_DEMON (1 << 0)
> + #define SWI_MASK_ANGEL (1 << 1)
> + #define SWI_MASK_REDBOOT (1 << 2)
>
>
> Why make this a mask? A major part of the problem here is that these SWI
> sets may be mutually incompatible. Why not just require the user to
> select the right one?
Actually, DEMON and ANGEL are compatible (they were designed to be). But
that doesn't make this generally true of all SWI sets that we might want
to emulate.
The specific case here could be handled by allowing
--swi=demon
--swi=angel
--swi=angel+demon
--swi=redboot
Note the FPE in the ARMulator requires (a subset of) DEMON SWI support in
order to be able to handle floating point exceptions.
R.