packet.cc (8229:78bf55f23338) | packet.cc (8436:5648986156db) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * Copyright (c) 2010 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 --- 134 unchanged lines hidden (view full) --- 143 /* IntResp -- for interrupts */ 144 { SET2(IsWrite, IsResponse), InvalidCmd, "MessageResp" }, 145 /* NetworkNackError -- nacked at network layer (not by protocol) */ 146 { SET2(IsResponse, IsError), InvalidCmd, "NetworkNackError" }, 147 /* InvalidDestError -- packet dest field invalid */ 148 { SET2(IsResponse, IsError), InvalidCmd, "InvalidDestError" }, 149 /* BadAddressError -- memory address invalid */ 150 { SET2(IsResponse, IsError), InvalidCmd, "BadAddressError" }, | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * Copyright (c) 2010 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 --- 134 unchanged lines hidden (view full) --- 143 /* IntResp -- for interrupts */ 144 { SET2(IsWrite, IsResponse), InvalidCmd, "MessageResp" }, 145 /* NetworkNackError -- nacked at network layer (not by protocol) */ 146 { SET2(IsResponse, IsError), InvalidCmd, "NetworkNackError" }, 147 /* InvalidDestError -- packet dest field invalid */ 148 { SET2(IsResponse, IsError), InvalidCmd, "InvalidDestError" }, 149 /* BadAddressError -- memory address invalid */ 150 { SET2(IsResponse, IsError), InvalidCmd, "BadAddressError" }, |
151 /* FunctionalReadError */ 152 { SET3(IsRead, IsResponse, IsError), InvalidCmd, "FunctionalReadError" }, 153 /* FunctionalWriteError */ 154 { SET3(IsWrite, IsResponse, IsError), InvalidCmd, "FunctionalWriteError" }, |
|
151 /* PrintReq */ 152 { SET2(IsRequest, IsPrint), InvalidCmd, "PrintReq" }, 153 /* Flush Request */ | 155 /* PrintReq */ 156 { SET2(IsRequest, IsPrint), InvalidCmd, "PrintReq" }, 157 /* Flush Request */ |
154 { SET3(IsRequest, IsFlush, NeedsExclusive), InvalidCmd, "FlushReq" } | 158 { SET3(IsRequest, IsFlush, NeedsExclusive), InvalidCmd, "FlushReq" }, |
155}; 156 157bool 158Packet::checkFunctional(Printable *obj, Addr addr, int size, uint8_t *data) 159{ 160 Addr func_start = getAddr(); 161 Addr func_end = getAddr() + getSize() - 1; 162 Addr val_start = addr; --- 120 unchanged lines hidden --- | 159}; 160 161bool 162Packet::checkFunctional(Printable *obj, Addr addr, int size, uint8_t *data) 163{ 164 Addr func_start = getAddr(); 165 Addr func_end = getAddr() + getSize() - 1; 166 Addr val_start = addr; --- 120 unchanged lines hidden --- |