Check.cc (9208:2451e60d4555) Check.cc (9475:736909f5c13b)
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

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

271 DPRINTF(RubyTest, "failed to initiate check - cpu port not ready\n");
272 }
273
274 DPRINTF(RubyTest, "status after check update: %s\n",
275 TesterStatus_to_string(m_status).c_str());
276}
277
278void
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

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

271 DPRINTF(RubyTest, "failed to initiate check - cpu port not ready\n");
272 }
273
274 DPRINTF(RubyTest, "status after check update: %s\n",
275 TesterStatus_to_string(m_status).c_str());
276}
277
278void
279Check::performCallback(NodeID proc, SubBlock* data)
279Check::performCallback(NodeID proc, SubBlock* data, Time curTime)
280{
281 Address address = data->getAddress();
282
283 // This isn't exactly right since we now have multi-byte checks
284 // assert(getAddress() == address);
285
286 assert(getAddress().getLineAddress() == address.getLineAddress());
287 assert(data != NULL);

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

307 // Perform load/check
308 for (int byte_number=0; byte_number<CHECK_SIZE; byte_number++) {
309 if (uint8_t(m_value + byte_number) != data->getByte(byte_number)) {
310 panic("Action/check failure: proc: %d address: %s data: %s "
311 "byte_number: %d m_value+byte_number: %d byte: %d %s"
312 "Time: %d\n",
313 proc, address, data, byte_number,
314 (int)m_value + byte_number,
280{
281 Address address = data->getAddress();
282
283 // This isn't exactly right since we now have multi-byte checks
284 // assert(getAddress() == address);
285
286 assert(getAddress().getLineAddress() == address.getLineAddress());
287 assert(data != NULL);

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

307 // Perform load/check
308 for (int byte_number=0; byte_number<CHECK_SIZE; byte_number++) {
309 if (uint8_t(m_value + byte_number) != data->getByte(byte_number)) {
310 panic("Action/check failure: proc: %d address: %s data: %s "
311 "byte_number: %d m_value+byte_number: %d byte: %d %s"
312 "Time: %d\n",
313 proc, address, data, byte_number,
314 (int)m_value + byte_number,
315 (int)data->getByte(byte_number), *this,
316 g_system_ptr->getTime());
315 (int)data->getByte(byte_number), *this, curTime);
317 }
318 }
319 DPRINTF(RubyTest, "Action/check success\n");
320 debugPrint();
321
322 // successful check complete, increment complete
323 m_tester_ptr->incrementCheckCompletions();
324
325 m_status = TesterStatus_Idle;
326 pickValue();
327
328 } else {
329 panic("Unexpected TesterStatus: %s proc: %d data: %s m_status: %s "
316 }
317 }
318 DPRINTF(RubyTest, "Action/check success\n");
319 debugPrint();
320
321 // successful check complete, increment complete
322 m_tester_ptr->incrementCheckCompletions();
323
324 m_status = TesterStatus_Idle;
325 pickValue();
326
327 } else {
328 panic("Unexpected TesterStatus: %s proc: %d data: %s m_status: %s "
330 "time: %d\n",
331 *this, proc, data, m_status, g_system_ptr->getTime());
329 "time: %d\n", *this, proc, data, m_status, curTime);
332 }
333
334 DPRINTF(RubyTest, "proc: %d, Address: 0x%x\n", proc,
335 getAddress().getLineAddress());
336 DPRINTF(RubyTest, "Callback done\n");
337 debugPrint();
338}
339

--- 49 unchanged lines hidden ---
330 }
331
332 DPRINTF(RubyTest, "proc: %d, Address: 0x%x\n", proc,
333 getAddress().getLineAddress());
334 DPRINTF(RubyTest, "Callback done\n");
335 debugPrint();
336}
337

--- 49 unchanged lines hidden ---