Deleted Added
sdiff udiff text old ( 3411:07ea0d74b798 ) new ( 3803:031d9d1b3924 )
full compact
1/*
2 * Copyright (c) 2004-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;

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

556 // Get shift amount for offset into the store's data.
557 int shift_amt = req->getVaddr() & (store_size - 1);
558 // @todo: Magic number, assumes byte addressing
559 shift_amt = shift_amt << 3;
560
561 // Cast this to type T?
562 data = storeQueue[store_idx].data >> shift_amt;
563
564 assert(!load_inst->memData);
565 load_inst->memData = new uint8_t[64];
566
567 memcpy(load_inst->memData, &data, req->getSize());
568
569 DPRINTF(LSQUnit, "Forwarding from store idx %i to load to "
570 "addr %#x, data %#x\n",
571 store_idx, req->getVaddr(), data);

--- 137 unchanged lines hidden ---