chunk_generator.hh (2665:a124942bacb8) chunk_generator.hh (2982:0ecdb0879b14)
1/*
2 * Copyright (c) 2001-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;

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

67 /** The start address so we can calculate offset in writing block. */
68 const Addr startAddr;
69 /** The maximum chunk size, e.g., the cache block size or page size. */
70 const int chunkSize;
71
72 public:
73 /**
74 * Constructor.
1/*
2 * Copyright (c) 2001-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;

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

67 /** The start address so we can calculate offset in writing block. */
68 const Addr startAddr;
69 /** The maximum chunk size, e.g., the cache block size or page size. */
70 const int chunkSize;
71
72 public:
73 /**
74 * Constructor.
75 * @param startAddr The starting address of the region.
75 * @param _startAddr The starting address of the region.
76 * @param totalSize The total size of the region.
77 * @param _chunkSize The size/alignment of chunks into which
78 * the region should be decomposed.
79 */
80 ChunkGenerator(Addr _startAddr, int totalSize, int _chunkSize)
81 : startAddr(_startAddr), chunkSize(_chunkSize)
82 {
83 // chunkSize must be a power of two

--- 60 unchanged lines hidden ---
76 * @param totalSize The total size of the region.
77 * @param _chunkSize The size/alignment of chunks into which
78 * the region should be decomposed.
79 */
80 ChunkGenerator(Addr _startAddr, int totalSize, int _chunkSize)
81 : startAddr(_startAddr), chunkSize(_chunkSize)
82 {
83 // chunkSize must be a power of two

--- 60 unchanged lines hidden ---