gpu_tlb.cc (13784:1941dc118243) gpu_tlb.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:

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

56#include "mem/page_table.hh"
57#include "mem/request.hh"
58#include "sim/process.hh"
59
60namespace X86ISA
61{
62
63 GpuTLB::GpuTLB(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:

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

56#include "mem/page_table.hh"
57#include "mem/request.hh"
58#include "sim/process.hh"
59
60namespace X86ISA
61{
62
63 GpuTLB::GpuTLB(const Params *p)
64 : MemObject(p), configAddress(0), size(p->size),
64 : ClockedObject(p), configAddress(0), size(p->size),
65 cleanupEvent([this]{ cleanup(); }, name(), false,
66 Event::Maximum_Pri),
67 exitEvent([this]{ exitCallback(); }, name())
68 {
69 assoc = p->assoc;
70 assert(assoc <= size);
71 numSets = size/assoc;
72 allocationPolicy = p->allocationPolicy;

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

945 void
946 GpuTLB::unserialize(CheckpointIn &cp)
947 {
948 }
949
950 void
951 GpuTLB::regStats()
952 {
65 cleanupEvent([this]{ cleanup(); }, name(), false,
66 Event::Maximum_Pri),
67 exitEvent([this]{ exitCallback(); }, name())
68 {
69 assoc = p->assoc;
70 assert(assoc <= size);
71 numSets = size/assoc;
72 allocationPolicy = p->allocationPolicy;

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

945 void
946 GpuTLB::unserialize(CheckpointIn &cp)
947 {
948 }
949
950 void
951 GpuTLB::regStats()
952 {
953 MemObject::regStats();
953 ClockedObject::regStats();
954
955 localNumTLBAccesses
956 .name(name() + ".local_TLB_accesses")
957 .desc("Number of TLB accesses")
958 ;
959
960 localNumTLBHits
961 .name(name() + ".local_TLB_hits")

--- 844 unchanged lines hidden ---
954
955 localNumTLBAccesses
956 .name(name() + ".local_TLB_accesses")
957 .desc("Number of TLB accesses")
958 ;
959
960 localNumTLBHits
961 .name(name() + ".local_TLB_hits")

--- 844 unchanged lines hidden ---