SubBlock.cc (6145:15cca6ab723a) | SubBlock.cc (6154:6bb54dcb940e) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30/* 31 * $Id$ 32 */ 33 | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30/* 31 * $Id$ 32 */ 33 |
34#include "SubBlock.hh" | 34#include "mem/ruby/common/SubBlock.hh" |
35 36SubBlock::SubBlock(const Address& addr, int size) 37{ 38 m_address = addr; 39 setSize(size); 40 for(int i=0; i<size; i++) { 41 setByte(i, 0); 42 } --- 39 unchanged lines hidden --- | 35 36SubBlock::SubBlock(const Address& addr, int size) 37{ 38 m_address = addr; 39 setSize(size); 40 for(int i=0; i<size; i++) { 41 setByte(i, 0); 42 } --- 39 unchanged lines hidden --- |