This is the mail archive of the gdb-patches@sources.redhat.com 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: [rfc] Query Red Boot's i386 CPU id


I haven't looked at the patch too closely yet but:

Eli Zaretskii <eliz@is.elta.co.il> writes:

> > - a command to query the cpuid (info cpu).
> > 
> > The actual CPU information is determined using a small file database 
> > (installed in ..../share/gdb/i386-cpuid).
> > 
> > Comments on how this was implemented, and what, if anything, could be 
> > integrated into GDB, welcome.
> 
> A few comments:
> 
>   (1) Why is this feature implemented for remote targets only?  Why is 
>       the database of CPU ids installed only for embedded builds?

Seconded.  I'm getting wild ideas of downloading the cpuid code to the
target, executing it there, and fetching the return value, and use
that to e.g. select whether it makes sense to do MMX or SSE :-).

Mark


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