tlb_coalescer.cc (13784:1941dc118243) tlb_coalescer.cc (13892:0182a0601f66)
1/*
2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

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

37
38#include <cstring>
39
40#include "base/logging.hh"
41#include "debug/GPUTLB.hh"
42#include "sim/process.hh"
43
44TLBCoalescer::TLBCoalescer(const Params *p)
1/*
2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

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

37
38#include <cstring>
39
40#include "base/logging.hh"
41#include "debug/GPUTLB.hh"
42#include "sim/process.hh"
43
44TLBCoalescer::TLBCoalescer(const Params *p)
45 : MemObject(p),
45 : ClockedObject(p),
46 clock(p->clk_domain->clockPeriod()),
47 TLBProbesPerCycle(p->probesPerCycle),
48 coalescingWindow(p->coalescingWindow),
49 disableCoalescing(p->disableCoalescing),
50 probeTLBEvent([this]{ processProbeTLBEvent(); },
51 "Probe the TLB below",
52 false, Event::CPU_Tick_Pri),
53 cleanupEvent([this]{ processCleanupEvent(); },

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

520 DPRINTF(GPUTLB, "Cleanup - Delete coalescer entry with key %#x\n",
521 cleanup_addr);
522 }
523}
524
525void
526TLBCoalescer::regStats()
527{
46 clock(p->clk_domain->clockPeriod()),
47 TLBProbesPerCycle(p->probesPerCycle),
48 coalescingWindow(p->coalescingWindow),
49 disableCoalescing(p->disableCoalescing),
50 probeTLBEvent([this]{ processProbeTLBEvent(); },
51 "Probe the TLB below",
52 false, Event::CPU_Tick_Pri),
53 cleanupEvent([this]{ processCleanupEvent(); },

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

520 DPRINTF(GPUTLB, "Cleanup - Delete coalescer entry with key %#x\n",
521 cleanup_addr);
522 }
523}
524
525void
526TLBCoalescer::regStats()
527{
528 MemObject::regStats();
528 ClockedObject::regStats();
529
530 uncoalescedAccesses
531 .name(name() + ".uncoalesced_accesses")
532 .desc("Number of uncoalesced TLB accesses")
533 ;
534
535 coalescedAccesses
536 .name(name() + ".coalesced_accesses")

--- 28 unchanged lines hidden ---
529
530 uncoalescedAccesses
531 .name(name() + ".uncoalesced_accesses")
532 .desc("Number of uncoalesced TLB accesses")
533 ;
534
535 coalescedAccesses
536 .name(name() + ".coalesced_accesses")

--- 28 unchanged lines hidden ---