43a44
> #include "cpu/rubytest/RubyTester.hh"
77c78,79
<
---
> m_usingRubyTester = p->using_ruby_tester;
>
346a349,372
> //
> // If using the RubyTester, update the RubyTester sender state's subBlock
> // with the recieved data. The tester will later access this state.
> // Note: RubyPort will access it's sender state before the RubyTester.
> //
> if (m_usingRubyTester) {
> //
> // Since the hit callback func only takes a request id, we must iterate
> // through the requests and update the packet's subBlock here.
> // All this would be fixed if we could attach a M5 pkt pointer to the
> // ruby request, however that change will break the libruby interface so
> // we'll hold off on that for now.
> //
> RequestMap::iterator i = pending_cpu_requests.find(srequest->id);
> if (i == pending_cpu_requests.end())
> panic("could not find pending request %d\n", srequest->id);
> RequestCookie *cookie = i->second;
> Packet *pkt = cookie->pkt;
>
> RubyTester::SenderState* testerSenderState;
> testerSenderState = safe_cast<RubyTester::SenderState*>(pkt->senderState);
> testerSenderState->subBlock->mergeFrom(data);
> }
>