DirectedGenerator.cc (7632:acf43d6bbc18) DirectedGenerator.cc (8832:247fee427324)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-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

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

23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include "cpu/testers/directedtest/DirectedGenerator.hh"
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-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

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

23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include "cpu/testers/directedtest/DirectedGenerator.hh"
31#include "sim/system.hh"
31
32DirectedGenerator::DirectedGenerator(const Params *p)
32
33DirectedGenerator::DirectedGenerator(const Params *p)
33 : SimObject(p)
34 : SimObject(p),
35 masterId(p->system->getMasterId(name()))
34{
35 m_num_cpus = p->num_cpus;
36 m_directed_tester = NULL;
37}
38
39void
40DirectedGenerator::setDirectedTester(RubyDirectedTester* directed_tester)
41{
42 assert(m_directed_tester == NULL);
43 m_directed_tester = directed_tester;
44}
36{
37 m_num_cpus = p->num_cpus;
38 m_directed_tester = NULL;
39}
40
41void
42DirectedGenerator::setDirectedTester(RubyDirectedTester* directed_tester)
43{
44 assert(m_directed_tester == NULL);
45 m_directed_tester = directed_tester;
46}