RubyPort.cc (8731:bb0aaf3ffa18) RubyPort.cc (8832:247fee427324)
1/*
2 * Copyright (c) 2009 Advanced Micro Devices, Inc.
3 * Copyright (c) 2011 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

682{
683 return (unsigned) RubySystem::getBlockSizeBytes();
684}
685
686void
687RubyPort::ruby_eviction_callback(const Address& address)
688{
689 DPRINTF(RubyPort, "Sending invalidations.\n");
1/*
2 * Copyright (c) 2009 Advanced Micro Devices, Inc.
3 * Copyright (c) 2011 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

682{
683 return (unsigned) RubySystem::getBlockSizeBytes();
684}
685
686void
687RubyPort::ruby_eviction_callback(const Address& address)
688{
689 DPRINTF(RubyPort, "Sending invalidations.\n");
690 Request req(address.getAddress(), 0, 0);
690 Request req(address.getAddress(), 0, 0, Request::funcMasterId);
691 for (CpuPortIter it = cpu_ports.begin(); it != cpu_ports.end(); it++) {
692 Packet *pkt = new Packet(&req, MemCmd::InvalidationReq, -1);
693 (*it)->sendTiming(pkt);
694 }
695}
691 for (CpuPortIter it = cpu_ports.begin(); it != cpu_ports.end(); it++) {
692 Packet *pkt = new Packet(&req, MemCmd::InvalidationReq, -1);
693 (*it)->sendTiming(pkt);
694 }
695}