diff options
| author | Tor Aamodt <[email protected]> | 2010-08-23 09:39:43 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-08-23 09:39:43 -0800 |
| commit | 5e8eced64a8262b0190c4014e59b93c37ba3af9c (patch) | |
| tree | 45cbf2cc87a2671c86548d645ef982f6b68373b3 /src/gpgpu-sim/l2cache.cc | |
| parent | 83a96bb39177a0767c6d851f4fe3ff92757652f5 (diff) | |
- add '-keep' option to keep intermediate files (used for OpenCL only right now)
- remove redundant initialization code of options (which confuses new users)
- make bool option variables bool type
- remove some more extern decls
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7247]
Diffstat (limited to 'src/gpgpu-sim/l2cache.cc')
| -rw-r--r-- | src/gpgpu-sim/l2cache.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc index e9f4780..f27c940 100644 --- a/src/gpgpu-sim/l2cache.cc +++ b/src/gpgpu-sim/l2cache.cc @@ -51,7 +51,6 @@ extern int gpgpu_dram_sched_queue_size; extern unsigned made_write_mfs; extern unsigned freed_L1write_mfs; extern unsigned freed_L2write_mfs; -extern unsigned g_next_request_uid; void memlatstat_icnt2sh_push(mem_fetch_t *mf); void memlatstat_dram_access(mem_fetch_t *mf, unsigned dram_id, unsigned bank); @@ -60,8 +59,8 @@ unsigned memlatstat_done(mem_fetch_t *mf); // option char *gpgpu_L2_queue_config; -int gpgpu_l2_readoverwrite = 0; -int l2_ideal = 0; +bool gpgpu_l2_readoverwrite; +bool l2_ideal; void L2c_options(option_parser_t opp) { @@ -715,7 +714,7 @@ unsigned char L2c_write_back(unsigned long long int addr, int bsize, int dram_id mf = (mem_fetch_t*) malloc(sizeof(mem_fetch_t)); made_write_mfs++; - mf->request_uid = g_next_request_uid++; + mf->request_uid = g_next_mf_request_uid++; mf->addr = addr; mf->nbytes_L1 = bsize + READ_PACKET_SIZE; mf->txbytes_L1 = 0; |
