summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--src/cuda-sim/ptx_ir.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index e09054f..7b80e58 100644
--- a/CHANGES
+++ b/CHANGES
@@ -24,6 +24,7 @@ Version 3.2.0+edits (development branch) versus 3.2.0
- Fixed a number of warnings generated by gcc 4.7.x
- Fixed a delete [] problem.
- Fixed a potential issue memsetting *this to 0.
+ - Fix for Bug 42 - ptx parse failure on valid ptx file (Alexander Samoilov)
Version 3.2.0 versus 3.1.2
- Added GPUWattch GPGPU power model based on McPAT 0.8beta.
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h
index f4ad6f7..547372d 100644
--- a/src/cuda-sim/ptx_ir.h
+++ b/src/cuda-sim/ptx_ir.h
@@ -369,6 +369,8 @@ public:
m_type = symbolic_t;
} else if ( addr->is_func_addr() ) {
m_type = symbolic_t;
+ } else if ( !addr->is_reg() ) {
+ m_type = symbolic_t;
} else {
m_type = reg_t;
}