RubyTester.hh (9294:8fb03b13de02) | RubyTester.hh (9542:683991c46ac8) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2013 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 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * |
|
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 9 * notice, this list of conditions and the following disclaimer; --- 54 unchanged lines hidden (view full) --- 64 protected: 65 virtual bool recvTimingResp(PacketPtr pkt); 66 virtual void recvRetry() 67 { panic("%s does not expect a retry\n", name()); } 68 }; 69 70 struct SenderState : public Packet::SenderState 71 { | 14 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 15 * Copyright (c) 2009 Advanced Micro Devices, Inc. 16 * All rights reserved. 17 * 18 * Redistribution and use in source and binary forms, with or without 19 * modification, are permitted provided that the following conditions are 20 * met: redistributions of source code must retain the above copyright 21 * notice, this list of conditions and the following disclaimer; --- 54 unchanged lines hidden (view full) --- 76 protected: 77 virtual bool recvTimingResp(PacketPtr pkt); 78 virtual void recvRetry() 79 { panic("%s does not expect a retry\n", name()); } 80 }; 81 82 struct SenderState : public Packet::SenderState 83 { |
72 SubBlock* subBlock; 73 Packet::SenderState *saved; | 84 SubBlock subBlock; |
74 | 85 |
75 SenderState(Address addr, int size, 76 Packet::SenderState *sender_state = NULL) 77 : saved(sender_state) 78 { 79 subBlock = new SubBlock(addr, size); 80 } | 86 SenderState(Address addr, int size) : subBlock(addr, size) {} |
81 | 87 |
82 ~SenderState() 83 { 84 delete subBlock; 85 } | |
86 }; 87 88 typedef RubyTesterParams Params; 89 RubyTester(const Params *p); 90 ~RubyTester(); 91 92 virtual BaseMasterPort &getMasterPort(const std::string &if_name, 93 PortID idx = InvalidPortID); --- 72 unchanged lines hidden --- | 88 }; 89 90 typedef RubyTesterParams Params; 91 RubyTester(const Params *p); 92 ~RubyTester(); 93 94 virtual BaseMasterPort &getMasterPort(const std::string &if_name, 95 PortID idx = InvalidPortID); --- 72 unchanged lines hidden --- |