On Wed, 6 Apr 2011, sunitha p wrote:

no...so..shud i delete this packet..

On Wed, Apr 6, 2011 at 5:58 PM, Nilay Vaish <[email protected]> wrote:

On Wed, 6 Apr 2011, sunitha p wrote:

 I am just creating a new packet.

PacketPtr inv_pkt= new Packet(pkt,true);

changed the acket address and command is changed to a new command which is
just the a request.

inv_pkt->setAddr(inv_pkt,temp);
      inv_pkt->cmd=MemCmd::ReqMove;

On Wed, Apr 6, 2011 at 5:15 PM, Nilay Vaish <[email protected]> wrote:

 On Wed, 6 Apr 2011, sunitha p wrote:

 Hi all,


I added  a new command with just the request attribute. But if i try to
run
for 100million instructions  i am getting the following error. am using
spec2006 bench marks


terminate called after throwing an instance of 'std::bad_alloc'
 what():  std::bad_alloc
Program aborted at cycle 11199095000
Aborted

even i checked the benchmarks html...dey suggest to run on 64 bit
machine..But even on it..am geting the same error.
can anyone please tell..wat is this error and why?

--
Thanks & Regards

Sunitha.P
9092892876


 Are you using malloc and / or new to allocate memory dynamically?

--
Nilay
_______________________________________________



And do you delete this packet afterwords?



Unless you expect some other part of system to delete this packet, you should delete it on your own. And as I understand, not deleting this packet is making the system run out of memory.

--
Nilay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to