Along these lines, simPalCheck probably should get moved at the least into a function which takes a thread context and lives in arch/alpha. I could imagine how it -might- need to be specialized per CPU, but I can't convince myself that's the case.
Gabe Gabe Black wrote: > One area where I had to use #if THE_ISA == was with the hwrei > function in the dynamic instruction class and in the CPU. Looking at the > code, it seems like there's nothing special going on and that should all > be put into an instruction. I don't really know the semantics of the > instruction or why things were done this way in the first place though, > so I thought I'd ask if there's any reason it should stay as it is. The > one possible reason I can see is that there's a stat that gets > incremented for that instruction which might be hard to do otherwise, > but I have to imagine it's not critically important. It also seems like > something the ISA should manage and that shouldn't be hard coded into > the CPU. > > Gabe > _______________________________________________ > m5-dev mailing list > m5-dev@m5sim.org > http://m5sim.org/mailman/listinfo/m5-dev > _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev