The code section that I was looking at has changed recently I believe, so it may be slightly different from what I mention here.
Take a look at src/cpu/static_inst.hh and hopefully you'll see methods srcRegIdx(int) and destRegIdx(int), both return uint_16t. If that's what you're looking for, you may still have to do some more work to get the flat register index. That routine is in src/simple/base.hh and is getFlatRegIdx(uint16_t). Hopefully this is what you're looking for, if you haven't figured it out yet. On Thu, Jan 2, 2014 at 12:47 AM, Vanchinathan Venkataramani < [email protected]> wrote: > Hi all > > I am trying to understand how register file reading works in gem5 for > ARM_Detailled. I found that in IEW stage inside executeInsts function, > inst->execute(); is being called. I looked up for this function and found a > comment saying that it is auto-generated. > > In cpu.cc, the function readIntRegs accesses the register file with > logical indexing. I would like to know where the physical to logical > register indexing is done. > > Thanks > V Vanchinathan > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- Martin
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
