Check.hh (8608:02d7ac5fb855) Check.hh (8932:1b2c17565ac8)
1/*
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

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

41class SubBlock;
42
43const int CHECK_SIZE_BITS = 2;
44const int CHECK_SIZE = (1 << CHECK_SIZE_BITS);
45
46class Check
47{
48 public:
1/*
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

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

41class SubBlock;
42
43const int CHECK_SIZE_BITS = 2;
44const int CHECK_SIZE = (1 << CHECK_SIZE_BITS);
45
46class Check
47{
48 public:
49 Check(const Address& address, const Address& pc, int _num_cpu_sequencer,
50 RubyTester* _tester);
49 Check(const Address& address, const Address& pc, int _num_writers,
50 int _num_readers, RubyTester* _tester);
51
52 void initiate(); // Does Action or Check or nether
53 void performCallback(NodeID proc, SubBlock* data);
54 const Address& getAddress() { return m_address; }
55 void changeAddress(const Address& address);
56
57 void print(std::ostream& out) const;
58

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

69
70 TesterStatus m_status;
71 uint8 m_value;
72 int m_store_count;
73 NodeID m_initiatingNode;
74 Address m_address;
75 Address m_pc;
76 RubyAccessMode m_access_mode;
51
52 void initiate(); // Does Action or Check or nether
53 void performCallback(NodeID proc, SubBlock* data);
54 const Address& getAddress() { return m_address; }
55 void changeAddress(const Address& address);
56
57 void print(std::ostream& out) const;
58

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

69
70 TesterStatus m_status;
71 uint8 m_value;
72 int m_store_count;
73 NodeID m_initiatingNode;
74 Address m_address;
75 Address m_pc;
76 RubyAccessMode m_access_mode;
77 int m_num_cpu_sequencers;
77 int m_num_writers;
78 int m_num_readers;
78 RubyTester* m_tester_ptr;
79};
80
81inline std::ostream&
82operator<<(std::ostream& out, const Check& obj)
83{
84 obj.print(out);
85 out << std::flush;
86 return out;
87}
88
89#endif // __CPU_RUBYTEST_CHECK_HH__
79 RubyTester* m_tester_ptr;
80};
81
82inline std::ostream&
83operator<<(std::ostream& out, const Check& obj)
84{
85 obj.print(out);
86 out << std::flush;
87 return out;
88}
89
90#endif // __CPU_RUBYTEST_CHECK_HH__