packet.cc (13856:c4a7f25aacb4) | packet.cc (13860:8f8df5b68439) |
---|---|
1/* 2 * Copyright (c) 2011-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 --- 382 unchanged lines hidden (view full) --- 391 392std::string 393Packet::print() const { 394 std::ostringstream str; 395 print(str); 396 return str.str(); 397} 398 | 1/* 2 * Copyright (c) 2011-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 --- 382 unchanged lines hidden (view full) --- 391 392std::string 393Packet::print() const { 394 std::ostringstream str; 395 print(str); 396 return str.str(); 397} 398 |
399bool 400Packet::matchBlockAddr(const Addr addr, const bool is_secure, 401 const int blk_size) const 402{ 403 return (getBlockAddr(blk_size) == addr) && (isSecure() == is_secure); 404} 405 406bool 407Packet::matchBlockAddr(const PacketPtr pkt, const int blk_size) const 408{ 409 return matchBlockAddr(pkt->getBlockAddr(blk_size), pkt->isSecure(), 410 blk_size); 411} 412 413bool 414Packet::matchAddr(const Addr addr, const bool is_secure) const 415{ 416 return (getAddr() == addr) && (isSecure() == is_secure); 417} 418 419bool 420Packet::matchAddr(const PacketPtr pkt) const 421{ 422 return matchAddr(pkt->getAddr(), pkt->isSecure()); 423} 424 |
|
399Packet::PrintReqState::PrintReqState(std::ostream &_os, int _verbosity) 400 : curPrefixPtr(new std::string("")), os(_os), verbosity(_verbosity) 401{ 402 labelStack.push_back(LabelStackEntry("", curPrefixPtr)); 403} 404 405Packet::PrintReqState::~PrintReqState() 406{ --- 53 unchanged lines hidden --- | 425Packet::PrintReqState::PrintReqState(std::ostream &_os, int _verbosity) 426 : curPrefixPtr(new std::string("")), os(_os), verbosity(_verbosity) 427{ 428 labelStack.push_back(LabelStackEntry("", curPrefixPtr)); 429} 430 431Packet::PrintReqState::~PrintReqState() 432{ --- 53 unchanged lines hidden --- |