On Tue, Sep 22, 2009 at 11:38 PM, Gabe Black <[email protected]> wrote: > > I think there's been at least a superficial effort to > factor out the common parts and template on, say, an ISA's definition of > a particular data structure as necessary, but pulling the whole thing > into a common spot for all ISAs is likely not feasible in the common case.
That's right... the strategy for functions that are common across OSes except for differences in flag values and structure layout is to template the function on the OS class, then put the flag values and struct definition in the OS class. While I'm sure we could consolidate a lot more functions this way, I think it's more than superficial... I count 20 different syscalls implemented this way in syscall_emul.hh. Steve _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
