summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-17 10:59:27 -0400
committerMengchi Zhang <[email protected]>2019-05-17 10:59:27 -0400
commit1fb385af6e036588a0b807aa51d74dcf34f841cd (patch)
tree6ae1202b542e5c21c03c62a1f926988587ac9e90 /src/cuda-sim/ptx_sim.cc
parent10156f6728f10fdc33ca8796e9cc6ade306f06ec (diff)
Move ptx parser to reentrant
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
-rw-r--r--src/cuda-sim/ptx_sim.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc
index 8ad651e..1b8831a 100644
--- a/src/cuda-sim/ptx_sim.cc
+++ b/src/cuda-sim/ptx_sim.cc
@@ -28,6 +28,8 @@
#include "ptx_sim.h"
#include <string>
#include "ptx_ir.h"
+class ptx_recognizer;
+typedef void * yyscan_t;
#include "ptx.tab.h"
#include "../gpgpu-sim/gpu-sim.h"
#include "../gpgpu-sim/shader.h"