Thanks. But I want to compute address when its required registers(for effAddr) are ready. I would be grateful if you can suggest how I should proceed.
Regards, Abhishek Rajgadia IIT Bombay On Tue, Sep 1, 2015 at 1:25 AM, Arthur Perais <arthur.per...@inria.fr> wrote: > In my gem5 version (which is not the most recent one, I'll say that), > calcEA() is commented as : > > " /** Calculates EA part of a memory instruction. *Currently unused*, > * though it may be useful in the future if we want to split > * memory operations into EA calculation and memory access parts. > */ > " > > and in static_inst.hh it returns nullptr. > > So I don't think that this is how the address is usually resolved. You > should try using the effAddr member of base_dyn_inst.hh if you want the EA > of memory instructions. > Naturally, this field is set when you call execute() on the BaseDynInst, > so it's only available after execute in O3. > > If you want it before then I'm not sure how you should proceed because > sources may not be ready. > > Hope it helps, > > Arthur. > > > Le 31/08/2015 21:33, Abhishek Rajgadia a écrit : > > Inside the function, we perform > this->staticInst->eaCompInst() > ->execute(this, this->traceData). > this->staticInst->eaCompInst() returns nullStaticInstPtr. > > I am sure its a memory instruction because I check it by calling isMemRef() > > On Tue, Sep 1, 2015 at 1:17 AM, Abhishek Rajgadia < <abhiraj...@gmail.com> > abhiraj...@gmail.com> wrote: > >> Inside the function, we perform >> this->staticInst->eaCompInst()->execute(this, this->traceData). >> this->staticInst->eaCompInst() returns nullStaticInstPtr. >> >> >> >> >> >> On Tue, Sep 1, 2015 at 12:50 AM, Steve Reinhardt < <ste...@gmail.com> >> ste...@gmail.com> wrote: >> >>> Which pointer is null? Are you sure it's a memory instruction, and that >>> all the dependencies are satisfied? >>> >>> On Mon, Aug 31, 2015 at 11:42 AM Abhishek Rajgadia < >>> <abhiraj...@gmail.com>abhiraj...@gmail.com> wrote: >>> >>>> Dear All, >>>> I am trying to compute effective address by calling calcEA() given in >>>> src/cpu/o3/dyn_inst.hh . But when i call this function, it gives a >>>> segmentation fault. This is because the pointer used inside the function >>>> points to NULL. What changes should I make to compute Effective Address. >>>> >>>> I am new to gem5. I would be obliged for your help. >>>> >>>> Regards, >>>> Abhishek >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> gem5-users@gem5.org >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> > > > _______________________________________________ > gem5-users mailing > listgem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > -- > Arthur Perais > INRIA Bretagne Atlantique > Bâtiment 12E, Bureau E303, Campus de Beaulieu > 35042 Rennes, France > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users