Korey Sewell wrote:
Is something coined as "derived" from a particular code because it
uses the same interface?
In some sense, any code you do within M5 has to be using that
interface in order for it to work.
Thus, isnt anything conforming to the whatever interface is defined "derived"?
My understanding is that things using the same interface are not
derived. If they use or are based on the same implementation, then I
think they're considered derived. For instance, the MIPS predecoder you
did at UM. I changed the interface for it when I added a predecoder, but
since I didn't change the implementation (that I remember) it would be
copyright UM and not HP. Maybe? It is a little confusing.
- i dont remember coding that getArgument() 25 lines. Gabe?
- MIPS (c) and I guess a UM (c) for that 25 line
If you do
hg annotate arch/mips/utility.cc
you get a bunch of stuff with
5247: getArgument(ThreadContext *tc, int number, bool fp)
5247: {
5247: #if FULL_SYSTEM
5247: if (number < NumArgumentRegs) {
5247: if (fp)
5247: return tc->readFloatRegBits(ArgumentReg[number]);
5247: else
5247: return tc->readIntReg(ArgumentReg[number]);
5247: } else {
in it, and then if you do
hg log -r 5247
you get
changeset: 5247:7bacaaffcf59
parent: 5221:7814467db7f4
user: Korey Sewell <[EMAIL PROTECTED]>
date: Tue Nov 13 16:58:16 2007 -0500
summary: Add in files from merge-bare-iron, get them compiling in FS
and SE mode
Now, I think this was where things were sort of bolted together in a
less than ideal way, so I'm not sure who actually wrote that code. I did
modify it to make ArgumentReg look up in an array rather than do an
addition to a base, but other than that I don't think I'm responsible.
If I had to guess, I'd say it originally came from Alpha, or maybe
passed through SPARC on it's way from Alpha.
Gabe
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev