cpu.cc (7725:00ea9430643b) | cpu.cc (7823:dac01f14f20f) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 231 unchanged lines hidden (view full) --- 240 241 delete pkt; 242*/ 243 memcpy(&inst_data, unverifiedMemData, sizeof(T)); 244 245 if (data != inst_data) { 246 warn("%lli: Store value does not match value in memory! " 247 "Instruction: %#x, memory: %#x", | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 231 unchanged lines hidden (view full) --- 240 241 delete pkt; 242*/ 243 memcpy(&inst_data, unverifiedMemData, sizeof(T)); 244 245 if (data != inst_data) { 246 warn("%lli: Store value does not match value in memory! " 247 "Instruction: %#x, memory: %#x", |
248 curTick, inst_data, data); | 248 curTick(), inst_data, data); |
249 handleError(); 250 } 251 } 252 253 // Assume the result was the same as the one passed in. This checker 254 // doesn't check if the SC should succeed or fail, it just checks the 255 // value. 256 if (res && unverifiedReq->scResultValid()) --- 65 unchanged lines hidden (view full) --- 322 return true; 323 } 324} 325 326void 327CheckerCPU::dumpAndExit() 328{ 329 warn("%lli: Checker PC:%#x, next PC:%#x", | 249 handleError(); 250 } 251 } 252 253 // Assume the result was the same as the one passed in. This checker 254 // doesn't check if the SC should succeed or fail, it just checks the 255 // value. 256 if (res && unverifiedReq->scResultValid()) --- 65 unchanged lines hidden (view full) --- 322 return true; 323 } 324} 325 326void 327CheckerCPU::dumpAndExit() 328{ 329 warn("%lli: Checker PC:%#x, next PC:%#x", |
330 curTick, thread->readPC(), thread->readNextPC()); | 330 curTick(), thread->readPC(), thread->readNextPC()); |
331 panic("Checker found an error!"); 332} | 331 panic("Checker found an error!"); 332} |