summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-20 02:17:58 -0400
committerMengchi Zhang <[email protected]>2019-05-20 02:17:58 -0400
commit579047c1dd9fec1b69e7904aeb6a25553c8dbd69 (patch)
tree22678c484fba24fce61a295194719a9803baabfe /src/cuda-sim/ptx_parser.h
parent434925ba00c0ad680d1fe75b68dcb46d8fe44e24 (diff)
Fix col and linebuf
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
-rw-r--r--src/cuda-sim/ptx_parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h
index 70c4dfb..fdff6ce 100644
--- a/src/cuda-sim/ptx_parser.h
+++ b/src/cuda-sim/ptx_parser.h
@@ -44,6 +44,9 @@ class ptx_recognizer {
scanner = NULL;
}
yyscan_t scanner;
+#define LINEBUF_SIZE (4*1024)
+ char linebuf[LINEBUF_SIZE];
+ unsigned col;
void init_directive_state();
void init_instruction_state();
void start_function( int entry_point );