diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-03 20:54:01 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-03 20:54:01 -0400 |
| commit | ce63582472e027107783b81be40b2429bd8e8f73 (patch) | |
| tree | 36ce48f9e23cd20797b765c04b4161b08edf8398 /src/cuda-sim/ptx.y | |
| parent | c7b8987b313602bf0c3a6edb4830bfba3aa083ae (diff) | |
| parent | 60c38b0f77378eb111e88f632702d19dc3746cc7 (diff) | |
Merge pull request #21 from echoedit/dev
Dev
Diffstat (limited to 'src/cuda-sim/ptx.y')
| -rw-r--r-- | src/cuda-sim/ptx.y | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y index 837fbe9..a01c3c6 100644 --- a/src/cuda-sim/ptx.y +++ b/src/cuda-sim/ptx.y @@ -30,6 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. %{ typedef void * yyscan_t; class ptx_recognizer; +#include "../../libcuda/gpgpu_context.h" %} %define api.pure full @@ -628,11 +629,9 @@ address_expression: IDENTIFIER { recognizer->add_address_operand($1,0); } %% -extern const char *g_filename; - void syntax_not_implemented(yyscan_t yyscanner, ptx_recognizer* recognizer) { - printf("Parse error (%s): this syntax is not (yet) implemented:\n",g_filename); + printf("Parse error (%s): this syntax is not (yet) implemented:\n", recognizer->gpgpu_ctx->g_filename); ptx_error(yyscanner, recognizer, NULL); abort(); } |
