Date: | Sat, 27 Jun 2009 20:48:19 +0200 |
---|---|
From: | David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx> |
Subject: | Re: [Gems-users] Problems configuring direct cache in Ruby... |
Hi Dan. I have tried what you said, and now my LRUPolicy.h's getVictim() function is this: inline Index LRUPolicy::getVictim(Index set) const { Time time, smallest_time; Index smallest_index; smallest_index = 0; smallest_time = m_last_ref_ptr[set][0]; for (unsigned int i=0; i < m_assoc; i++) { time = m_last_ref_ptr[set][i]; if (time < smallest_time){ smallest_index = i; smallest_time = time; } } printf("m_assoc: %d\n", m_assoc); if (m_assoc==1) return 0; else return smallest_index; } When I run the simulation (using MSI_MOSI_CMP_directory protocol) for 1M instructions it prints "m_assoc: 1" several times, but when it reaches 7139 instructions executed, it exits with no errors or warnings, just like it did before changing getVictim() function. I have also tried with another protocol (MOESI_CMP_directory) and in this case it seems to work fine, simulating 1M instructions. So, what might then be the problem?? Thank you!! Regards, David 2009/6/25 David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx>
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] Problem compiling Ruby: *** No rule to make target `ruby'. Stop., David Bonavila |
---|---|
Next by Date: | Re: [Gems-users] Problems configuring direct cache in Ruby..., David Bonavila |
Previous by Thread: | Re: [Gems-users] Problems configuring direct cache in Ruby..., Dan Gibson |
Next by Thread: | Re: [Gems-users] Problems configuring direct cache in Ruby..., David Bonavila |
Indexes: | [Date] [Thread] |