RubySystem.cc (11108:6342ddf6d733) RubySystem.cc (11118:75c1e564a725)
1/*
2 * Copyright (c) 1999-2011 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 390 unchanged lines hidden (view full) ---

399RubySystem::functionalRead(PacketPtr pkt)
400{
401 Addr address(pkt->getAddr());
402 Addr line_address = makeLineAddress(address);
403
404 AccessPermission access_perm = AccessPermission_NotPresent;
405 int num_controllers = m_abs_cntrl_vec.size();
406
1/*
2 * Copyright (c) 1999-2011 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 390 unchanged lines hidden (view full) ---

399RubySystem::functionalRead(PacketPtr pkt)
400{
401 Addr address(pkt->getAddr());
402 Addr line_address = makeLineAddress(address);
403
404 AccessPermission access_perm = AccessPermission_NotPresent;
405 int num_controllers = m_abs_cntrl_vec.size();
406
407 DPRINTF(RubySystem, "Functional Read request for %s\n", address);
407 DPRINTF(RubySystem, "Functional Read request for %#x\n", address);
408
409 unsigned int num_ro = 0;
410 unsigned int num_rw = 0;
411 unsigned int num_busy = 0;
412 unsigned int num_backing_store = 0;
413 unsigned int num_invalid = 0;
414
415 // In this loop we count the number of controllers that have the given

--- 65 unchanged lines hidden (view full) ---

481bool
482RubySystem::functionalWrite(PacketPtr pkt)
483{
484 Addr addr(pkt->getAddr());
485 Addr line_addr = makeLineAddress(addr);
486 AccessPermission access_perm = AccessPermission_NotPresent;
487 int num_controllers = m_abs_cntrl_vec.size();
488
408
409 unsigned int num_ro = 0;
410 unsigned int num_rw = 0;
411 unsigned int num_busy = 0;
412 unsigned int num_backing_store = 0;
413 unsigned int num_invalid = 0;
414
415 // In this loop we count the number of controllers that have the given

--- 65 unchanged lines hidden (view full) ---

481bool
482RubySystem::functionalWrite(PacketPtr pkt)
483{
484 Addr addr(pkt->getAddr());
485 Addr line_addr = makeLineAddress(addr);
486 AccessPermission access_perm = AccessPermission_NotPresent;
487 int num_controllers = m_abs_cntrl_vec.size();
488
489 DPRINTF(RubySystem, "Functional Write request for %s\n", addr);
489 DPRINTF(RubySystem, "Functional Write request for %#x\n", addr);
490
491 uint32_t M5_VAR_USED num_functional_writes = 0;
492
493 for (unsigned int i = 0; i < num_controllers;++i) {
494 num_functional_writes +=
495 m_abs_cntrl_vec[i]->functionalWriteBuffers(pkt);
496
497 access_perm = m_abs_cntrl_vec[i]->getAccessPermission(line_addr);

--- 70 unchanged lines hidden ---
490
491 uint32_t M5_VAR_USED num_functional_writes = 0;
492
493 for (unsigned int i = 0; i < num_controllers;++i) {
494 num_functional_writes +=
495 m_abs_cntrl_vec[i]->functionalWriteBuffers(pkt);
496
497 access_perm = m_abs_cntrl_vec[i]->getAccessPermission(line_addr);

--- 70 unchanged lines hidden ---