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 {
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 ---
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 {
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 ---