This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH/RFC] sim: simarch: new runtime framework for target settings (for --enable-targets=all)
- From: Pedro Alves <palves at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>, gdb-patches at sourceware dot org
- Date: Mon, 04 Jan 2016 12:32:50 +0000
- Subject: Re: [PATCH/RFC] sim: simarch: new runtime framework for target settings (for --enable-targets=all)
- Authentication-results: sourceware.org; auth=none
- References: <1451903563-6188-1-git-send-email-vapier at gentoo dot org>
On 01/04/2016 10:32 AM, Mike Frysinger wrote:
> This takes a page from gdbarch's framework and brings it to the sim.
> Rather than setting up defaults via configure flags or having every
> port provide specific symbol names (e.g. sim_xxx), they define and
> register a simarch structure. The core code then matches that when
> it loads and uses that for defaults/further callbacks.
>
> This doesn't get us complete arch independence yet as we need to:
> - redo the build system
> - invert sim_state definition (e.g. STATE_ARCH_DATA)
> - invert sim_cpu definition (e.g. CPU_ARCH_DATA)
>
> But this gets us much closer and should allow for further unwinding.
> This isn't ready just yet for merging -- posting as RFC before I get
> too much further down this rabbit hole.
I'm not very familiar with the sim's internals, but this sounds like
a great step forward to me. Thanks for doing all of this.
Thanks,
Pedro Alves