diff options
| author | Roland Green <[email protected]> | 2019-08-26 16:28:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 16:28:51 -0400 |
| commit | 93e98042f7c4a589bf0e4c7cfcc639c316c8a4b2 (patch) | |
| tree | 1e32c07e932b3d3cc6b977e29a1327274f4f29a8 /src/abstract_hardware_model.h | |
| parent | 6be23a1b36a3311c7dafc45a5e692e38cb351337 (diff) | |
| parent | b88c9e9a545960b7fcc1c373b60005612296158b (diff) | |
Merge pull request #28 from CoffeeBeforeArch/fix_warnings
Fix a bunch of outstanding warnings and undefined behavior. Fix single merge-error with Mahmoud's changes.
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 8c19e33..fdc4dc3 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -520,10 +520,10 @@ private: int checkpoint_option; int checkpoint_kernel; int checkpoint_CTA; - int resume_option; - int resume_kernel; - int resume_CTA; - int checkpoint_CTA_t; + unsigned resume_option; + unsigned resume_kernel; + unsigned resume_CTA; + unsigned checkpoint_CTA_t; int checkpoint_insn_Y; int g_ptx_inst_debug_to_file; char* g_ptx_inst_debug_file; @@ -541,10 +541,10 @@ public: int checkpoint_option; int checkpoint_kernel; int checkpoint_CTA; - int resume_option; - int resume_kernel; - int resume_CTA; - int checkpoint_CTA_t; + unsigned resume_option; + unsigned resume_kernel; + unsigned resume_CTA; + unsigned checkpoint_CTA_t; int checkpoint_insn_Y; //Move some cycle core stats here instead of being global @@ -993,7 +993,7 @@ public: printf("Printing mem access generated\n"); std::list<mem_access_t>::iterator it; for (it = m_accessq.begin(); it != m_accessq.end(); ++it){ - printf("MEM_TXN_GEN:%s:%x, Size:%d \n",mem_access_type_str(it->get_type()), it->get_addr(),it->get_size()); + printf("MEM_TXN_GEN:%s:%llx, Size:%d \n",mem_access_type_str(it->get_type()), it->get_addr(),it->get_size()); } } } |
