CheckTable.cc (7780:42da07116e12) CheckTable.cc (7805:f249937228b5)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 Advanced Micro Devices, Inc.
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

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

76 delete m_check_vector[i];
77}
78
79void
80CheckTable::addCheck(const Address& address)
81{
82 if (floorLog2(CHECK_SIZE) != 0) {
83 if (address.bitSelect(0, CHECK_SIZE_BITS - 1) != 0) {
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 Advanced Micro Devices, Inc.
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

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

76 delete m_check_vector[i];
77}
78
79void
80CheckTable::addCheck(const Address& address)
81{
82 if (floorLog2(CHECK_SIZE) != 0) {
83 if (address.bitSelect(0, CHECK_SIZE_BITS - 1) != 0) {
84 ERROR_MSG("Check not aligned");
84 panic("Check not aligned");
85 }
86 }
87
88 for (int i = 0; i < CHECK_SIZE; i++) {
89 if (m_lookup_map.count(Address(address.getAddress()+i))) {
90 // A mapping for this byte already existed, discard the
91 // entire check
92 return;

--- 37 unchanged lines hidden ---
85 }
86 }
87
88 for (int i = 0; i < CHECK_SIZE; i++) {
89 if (m_lookup_map.count(Address(address.getAddress()+i))) {
90 // A mapping for this byte already existed, discard the
91 // entire check
92 return;

--- 37 unchanged lines hidden ---