This is the mail archive of the sid@sources.redhat.com mailing list for the SID 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: hw-cpu-openrisc


I'm having a go at piecing the jigsaw together...

> The work includes ...
> - adding sid configury for the openrisc target; see
> sid/config/sidtargets.m4;

Will something like this be sufficient?

Index: sidtargets.m4
===================================================================
RCS file: /cvs/src/src/sid/config/sidtargets.m4,v
retrieving revision 1.4
diff -r1.4 sidtargets.m4
43a44
> sidtarget_openrisc=$sidtarget_default
56a58
>       openrisc*) sidtarget_openrisc=1 ;;
70a73
>   ${sidtarget_openrisc}) ;;
104a108,112
>
> AC_MSG_CHECKING(OpenRISC family support)
> AC_SUBST(sidtarget_openrisc)
> AM_CONDITIONAL(SIDTARGET_OPENRISC,[test "x$sidtarget_openrisc" = x1])
> AC_MSG_RESULT($sidtarget_openrisc)#

>   will need autoconf/automake runs throughout

So how do I do this exactly? I don't know much about these utilities, I'm
afraid. I did 'autoconf' and 'automake' at the top but it didn't seem to
make much difference to any of the files. If I need to go and read up about
these utilities before trying to do anything else, let me know :-)

> - adding sid configuration file generator pieces to sid/bsp/configrun-sid

Again, I think I can see what to do here, assuming I don't want any 'boards'
just yet. Would something like this do?

Index: configrun-sid.in
===================================================================
RCS file: /cvs/src/src/sid/bsp/configrun-sid.in,v
retrieving revision 1.34
diff -r1.34 configrun-sid.in
19a20
> 		 "openrisc" => "hw-cpu-openrisc/d",
25a27
> 		      "openrisc" => "-EB",
34a37
> 		   "openrisc" => "sw-gloss-openrisc/libgloss",
43a47
> 		   "openrisc" => "0x00000000,0x00800000",

> - populating sid/component/cgen-cpu/openrisc, mostly with
> cgen-generated files,
>   plus one or two hand-written ones; the m32r target is amongst
> the simplest to
>   use as a base

This is where I'm getting a little bit unstuck. Looking at the m32r
subdirectory, I can see the m32r-decode.cxx etc. files which all say they
are automatically generated by CGEN. But how did they get here? Are they
created somewhere else by an additional step then copied in? Again, I can
see in CGEN there are the sid-xxx.scm files which I presume are extra to the
normal CGEN release - do these build the 'extra bits' needed for SID? There
doesn't seem to be much about it in the documentation - how do you build
this?

I presume the additional hand-written files are needed to implement the sid
interfaces.

> - testing, perhaps as a dejagnu "baseboard"

Not even close :-)

I would really like to have a go at doing this, but I'm finding it hard
going with lack of documentation at the SID level and a huge directory tree.
Any more help would be really appreciated - even if it's to say 'get fully
acquainted with the GNU way of doing things first'. Then at least I know
what I'm up against.

Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________



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