From bb820c116764d7a1b8e071137d32b74e7f34dd2f Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Mon, 30 Aug 2010 11:05:15 -0800 Subject: integrating CL 7421-7434 from fermi-test this integrates the ptxplus functional model changes, but has only been verified with CUDA 3.1 PTX regressions (which pass) still need to verify ptxplus itself is working in this branch [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7435] --- src/cuda-sim/ptx_parser.cc | 147 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 145 insertions(+), 2 deletions(-) (limited to 'src/cuda-sim/ptx_parser.cc') diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 05ce397..d4a892f 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -94,6 +94,7 @@ type_info *g_var_type = NULL; // instruction definition stuff: const symbol *g_pred; int g_neg_pred; +int g_pred_mod; symbol *g_label; int g_opcode = -1; std::list g_operands; @@ -165,6 +166,7 @@ void init_instruction_state() DPRINTF("init_instruction_state"); g_pred = NULL; g_neg_pred = 0; + g_pred_mod = -1; g_label = NULL; g_opcode = -1; g_options.clear(); @@ -291,7 +293,8 @@ void add_instruction() DPRINTF("add_instruction: %s", ((g_opcode>0)?g_opcode_string[g_opcode]:"