DirectedGenerator.cc (11793:ef606668d247) DirectedGenerator.cc (12680:91f4d6668b4f)
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

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

28 */
29
30#include "cpu/testers/directedtest/DirectedGenerator.hh"
31
32#include "sim/system.hh"
33
34DirectedGenerator::DirectedGenerator(const Params *p)
35 : SimObject(p),
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

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

28 */
29
30#include "cpu/testers/directedtest/DirectedGenerator.hh"
31
32#include "sim/system.hh"
33
34DirectedGenerator::DirectedGenerator(const Params *p)
35 : SimObject(p),
36 masterId(p->system->getMasterId(name()))
36 masterId(p->system->getMasterId(this))
37{
38 m_num_cpus = p->num_cpus;
39 m_directed_tester = NULL;
40}
41
42void
43DirectedGenerator::setDirectedTester(RubyDirectedTester* directed_tester)
44{
45 assert(m_directed_tester == NULL);
46 m_directed_tester = directed_tester;
47}
37{
38 m_num_cpus = p->num_cpus;
39 m_directed_tester = NULL;
40}
41
42void
43DirectedGenerator::setDirectedTester(RubyDirectedTester* directed_tester)
44{
45 assert(m_directed_tester == NULL);
46 m_directed_tester = directed_tester;
47}