packet.hh (13856:c4a7f25aacb4) packet.hh (13860:8f8df5b68439)
1/*
2 * Copyright (c) 2012-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

975 setSize(unsigned size)
976 {
977 assert(!flags.isSet(VALID_SIZE));
978
979 this->size = size;
980 flags.set(VALID_SIZE);
981 }
982
1/*
2 * Copyright (c) 2012-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

975 setSize(unsigned size)
976 {
977 assert(!flags.isSet(VALID_SIZE));
978
979 this->size = size;
980 flags.set(VALID_SIZE);
981 }
982
983 /**
984 * Check if packet corresponds to a given block-aligned address and
985 * address space.
986 *
987 * @param addr The address to compare against.
988 * @param is_secure Whether addr belongs to the secure address space.
989 * @param blk_size Block size in bytes.
990 * @return Whether packet matches description.
991 */
992 bool matchBlockAddr(const Addr addr, const bool is_secure,
993 const int blk_size) const;
983
994
995 /**
996 * Check if this packet refers to the same block-aligned address and
997 * address space as another packet.
998 *
999 * @param pkt The packet to compare against.
1000 * @param blk_size Block size in bytes.
1001 * @return Whether packet matches description.
1002 */
1003 bool matchBlockAddr(const PacketPtr pkt, const int blk_size) const;
1004
1005 /**
1006 * Check if packet corresponds to a given address and address space.
1007 *
1008 * @param addr The address to compare against.
1009 * @param is_secure Whether addr belongs to the secure address space.
1010 * @return Whether packet matches description.
1011 */
1012 bool matchAddr(const Addr addr, const bool is_secure) const;
1013
1014 /**
1015 * Check if this packet refers to the same address and address space as
1016 * another packet.
1017 *
1018 * @param pkt The packet to compare against.
1019 * @return Whether packet matches description.
1020 */
1021 bool matchAddr(const PacketPtr pkt) const;
1022
984 public:
985 /**
986 * @{
987 * @name Data accessor mehtods
988 */
989
990 /**
991 * Set the data pointer to the following value that should not be

--- 312 unchanged lines hidden ---
1023 public:
1024 /**
1025 * @{
1026 * @name Data accessor mehtods
1027 */
1028
1029 /**
1030 * Set the data pointer to the following value that should not be

--- 312 unchanged lines hidden ---