summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-03-02 04:01:06 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:04 -0700
commitcb32e99886b36069256334b8051ae7d6c05447c4 (patch)
treecd68b1e1bd4f107796d35c558afef7714da2f2da /src
parentf103f929522f964501de1a7f6935fc3b294d5790 (diff)
Forgot to remove the commented incorrect code in addrdec.cc.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11577]
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/addrdec.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gpgpu-sim/addrdec.cc b/src/gpgpu-sim/addrdec.cc
index 8857ac9..b259f1a 100644
--- a/src/gpgpu-sim/addrdec.cc
+++ b/src/gpgpu-sim/addrdec.cc
@@ -87,25 +87,6 @@ void linear_to_raw_address_translation::addrdec_tlx(new_addr_type addr, addrdec_
tlx->col = addrdec_packbits(addrdec_mask[COL], addr, addrdec_mkhigh[COL], addrdec_mklow[COL]);
tlx->burst= addrdec_packbits(addrdec_mask[BURST], addr, addrdec_mkhigh[BURST], addrdec_mklow[BURST]);
} else {
- #if 0
- addr_for_chip= ( (addr>>ADDR_CHIP_S) % Nchips) << ADDR_CHIP_S;
- rest_of_addr= ( (addr>>ADDR_CHIP_S) / Nchips) << ADDR_CHIP_S;
-
- tlx->chip = addrdec_packbits(addrdec_mask[CHIP], addr_for_chip, addrdec_mkhigh[CHIP], addrdec_mklow[CHIP]);
- if (addrdec_mask[BK] > addrdec_mask[CHIP]) {
- tlx->bk = addrdec_packbits(addrdec_mask[BK], rest_of_addr, addrdec_mkhigh[BK], addrdec_mklow[BK]);
- } else {
- tlx->bk = addrdec_packbits(addrdec_mask[BK], addr, addrdec_mkhigh[BK], addrdec_mklow[BK]);
- }
- if (addrdec_mask[ROW] > addrdec_mask[CHIP]) {
- tlx->row = addrdec_packbits(addrdec_mask[ROW], rest_of_addr, addrdec_mkhigh[ROW], addrdec_mklow[ROW]);
- } else {
- tlx->row = addrdec_packbits(addrdec_mask[ROW], addr, addrdec_mkhigh[ROW], addrdec_mklow[ROW]);
- }
- tlx->col = addrdec_packbits(addrdec_mask[COL], addr, addrdec_mkhigh[COL], addrdec_mklow[COL]);
- tlx->burst= addrdec_packbits(addrdec_mask[BURST], addr, addrdec_mkhigh[BURST], addrdec_mklow[BURST]);
- #endif
-
// Split the given address at ADDR_CHIP_S into (MSBs,LSBs)
// - extract chip address using modulus of MSBs
// - recreate the rest of the address by stitching the quotient of MSBs and the LSBs