abstract_mem.hh (13892:0182a0601f66) | abstract_mem.hh (13998:2feca2ebe67b) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2012 ARM Limited | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 67 unchanged lines hidden (view full) --- 78 // locking hw context 79 const ContextID contextId; 80 81 static Addr mask(Addr paddr) { return (paddr & ~Addr_Mask); } 82 83 // check for matching execution context 84 bool matchesContext(const RequestPtr &req) const 85 { | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 67 unchanged lines hidden (view full) --- 78 // locking hw context 79 const ContextID contextId; 80 81 static Addr mask(Addr paddr) { return (paddr & ~Addr_Mask); } 82 83 // check for matching execution context 84 bool matchesContext(const RequestPtr &req) const 85 { |
86 assert(contextId != InvalidContextID); 87 assert(req->hasContextId()); |
|
86 return (contextId == req->contextId()); 87 } 88 89 LockedAddr(const RequestPtr &req) : addr(mask(req->getPaddr())), 90 contextId(req->contextId()) 91 {} 92 93 // constructor for unserialization use --- 234 unchanged lines hidden --- | 88 return (contextId == req->contextId()); 89 } 90 91 LockedAddr(const RequestPtr &req) : addr(mask(req->getPaddr())), 92 contextId(req->contextId()) 93 {} 94 95 // constructor for unserialization use --- 234 unchanged lines hidden --- |