I'm getting pretty close to starting with the interrupt entering microcode, but one annoying issue I'm not sure how to deal with is passing an environment to the microops in the ROM. For the interrupt code it's not as important because for a particular mode, the code should always behave the same way, generally outside the scope of any instruction. In the case of macroops being partially stored in the ROM, it becomes more important since the registers used, the various widths involved, etc. become more important. The ROM itself as it stands spits out instructions which correspond to a particular micropc but aren't otherwise specialized. If this was just x86, the obvious/easy solution would be to pass the emulation environment and extended machine instruction being used with the current macroop through to the ROM as the instructions are generated. Since it isn't, I need some way to get that information, whose existence is unknown to the decoder, out of the macroop, and then pass it into the ROM when a microop is requested. Any ideas how that might work? I'm really trying not to turn decode into a big convoluted mess so I'm trying to do this with a very light touch.
Gabe _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
