static_inst.cc (7720:65d338a8dba4) static_inst.cc (7823:dac01f14f20f)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
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;

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

46{
47 if (cachedDisassembly)
48 delete cachedDisassembly;
49}
50
51void
52StaticInst::dumpDecodeCacheStats()
53{
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
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;

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

46{
47 if (cachedDisassembly)
48 delete cachedDisassembly;
49}
50
51void
52StaticInst::dumpDecodeCacheStats()
53{
54 cerr << "Decode hash table stats @ " << curTick << ":" << endl;
54 cerr << "Decode hash table stats @ " << curTick() << ":" << endl;
55 cerr << "\tnum entries = " << decodeCache.size() << endl;
56 cerr << "\tnum buckets = " << decodeCache.bucket_count() << endl;
57 vector<int> hist(100, 0);
58 int max_hist = 0;
59 for (int i = 0; i < decodeCache.bucket_count(); ++i) {
60 int count = decodeCache.elems_in_bucket(i);
61 if (count > max_hist)
62 max_hist = count;

--- 55 unchanged lines hidden ---
55 cerr << "\tnum entries = " << decodeCache.size() << endl;
56 cerr << "\tnum buckets = " << decodeCache.bucket_count() << endl;
57 vector<int> hist(100, 0);
58 int max_hist = 0;
59 for (int i = 0; i < decodeCache.bucket_count(); ++i) {
60 int count = decodeCache.elems_in_bucket(i);
61 if (count > max_hist)
62 max_hist = count;

--- 55 unchanged lines hidden ---