summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
-rw-r--r--src/cuda-sim/ptx_parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h
index cc8fe18..c4e0b89 100644
--- a/src/cuda-sim/ptx_parser.h
+++ b/src/cuda-sim/ptx_parser.h
@@ -59,6 +59,8 @@ class ptx_recognizer {
g_global_symbol_table = NULL;
g_current_symbol_table = NULL;
symbol *g_last_symbol = NULL;
+ g_error_detected = 0;
+ g_entry_func_param_index=0;
}
// global list
yyscan_t scanner;
@@ -95,6 +97,9 @@ class ptx_recognizer {
symbol_table *g_global_symbol_table;
symbol_table *g_current_symbol_table;
symbol *g_last_symbol;
+ std::list<ptx_instruction*> g_instructions;
+ int g_error_detected;
+ unsigned g_entry_func_param_index;
// member function list
void init_directive_state();