Sequencer.cc (11793:ef606668d247) | Sequencer.cc (12051:4cc27e53748d) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 475 unchanged lines hidden (view full) --- 484 memcpy(&overwrite_val[0], pkt->getConstPtr<uint8_t>(), 485 pkt->getSize()); 486 memcpy(pkt->getPtr<uint8_t>(), 487 data.getData(getOffset(request_address), pkt->getSize()), 488 pkt->getSize()); 489 data.setData(&overwrite_val[0], 490 getOffset(request_address), pkt->getSize()); 491 DPRINTF(RubySequencer, "swap data %s\n", data); | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 475 unchanged lines hidden (view full) --- 484 memcpy(&overwrite_val[0], pkt->getConstPtr<uint8_t>(), 485 pkt->getSize()); 486 memcpy(pkt->getPtr<uint8_t>(), 487 data.getData(getOffset(request_address), pkt->getSize()), 488 pkt->getSize()); 489 data.setData(&overwrite_val[0], 490 getOffset(request_address), pkt->getSize()); 491 DPRINTF(RubySequencer, "swap data %s\n", data); |
492 } else { | 492 } else if (type != RubyRequestType_Store_Conditional || llscSuccess) { 493 // Types of stores set the actual data here, apart from 494 // failed Store Conditional requests |
493 data.setData(pkt->getConstPtr<uint8_t>(), 494 getOffset(request_address), pkt->getSize()); 495 DPRINTF(RubySequencer, "set data %s\n", data); 496 } 497 } 498 499 // If using the RubyTester, update the RubyTester sender state's 500 // subBlock with the recieved data. The tester will later access --- 295 unchanged lines hidden --- | 495 data.setData(pkt->getConstPtr<uint8_t>(), 496 getOffset(request_address), pkt->getSize()); 497 DPRINTF(RubySequencer, "set data %s\n", data); 498 } 499 } 500 501 // If using the RubyTester, update the RubyTester sender state's 502 // subBlock with the recieved data. The tester will later access --- 295 unchanged lines hidden --- |