SubBlock.cc (7039:bc0b6ea676b5) SubBlock.cc (7055:4e24742201d7)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

56 int offset = m_address.getOffset();
57 for (int i = 0; i < size; i++) {
58 // This will detect crossing a cache line boundary
59 data.setByte(offset + i, this->getByte(i));
60 }
61}
62
63void
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

56 int offset = m_address.getOffset();
57 for (int i = 0; i < size; i++) {
58 // This will detect crossing a cache line boundary
59 data.setByte(offset + i, this->getByte(i));
60 }
61}
62
63void
64SubBlock::print(ostream& out) const
64SubBlock::print(std::ostream& out) const
65{
66 out << "[" << m_address << ", " << getSize() << ", " << m_data << "]";
67}
68
69
70
65{
66 out << "[" << m_address << ", " << getSize() << ", " << m_data << "]";
67}
68
69
70