No, I don't think those should be SimObjects since they're really just handy abstractions for use internal to the I8042 (PS/2 keyboard and mouse controller). It would be reasonable, though, to still put serialization methods on them the I8042 could call so they manage their own data. The Channel structs of the IDE controller work like that I think.
Gabe Joel Hestness wrote: > Hi, > This question is probably for Gabe: > I'm currently implementing checkpointing for x86, and I have run > into a question about inheritance with a couple x86-specific devices. > src/dev/x86/i8042.hh defines a PS2Device, which doesn't inherit from > anything, but it looks like the PS2Keyboard and PS2Mouse have state > that might need to be checkpointed (e.g. mouse status in the case that > Linux enables/disables it). > Should PS2Device descend from SimObject? (if so, through a > particular subclass of SimObject?) > Thanks, > Joel > > > -- > Joel Hestness > PhD Student, Computer Architecture > Dept. of Computer Science, University of Texas - Austin > http://www.cs.utexas.edu/~hestness > <http://www.cs.utexas.edu/%7Ehestness> > ------------------------------------------------------------------------ > > _______________________________________________ > m5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
