This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] sim: simarch: new runtime framework for target settings (for --enable-targets=all)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]