summaryrefslogtreecommitdiff
path: root/src/trace-driven/trace_opcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace-driven/trace_opcode.h')
-rw-r--r--src/trace-driven/trace_opcode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trace-driven/trace_opcode.h b/src/trace-driven/trace_opcode.h
index f809238..827c32c 100644
--- a/src/trace-driven/trace_opcode.h
+++ b/src/trace-driven/trace_opcode.h
@@ -5,6 +5,7 @@
#include "../abstract_hardware_model.h"
#include <unordered_map>
+#include <string>
enum TraceInstrOpcode {
@@ -60,7 +61,7 @@ struct OpcodeChar
///Volta SM_70 ISA
//see: https://docs.nvidia.com/cuda/cuda-binary-utilities/index.html
-static const std::unordered_map<const char*,OpcodeChar> OpcodeMap = {
+static const std::unordered_map<std::string,OpcodeChar> OpcodeMap = {
//Floating Point 32 Instructions
{"FADD", OpcodeChar(OP_FADD, SP_OP)},
{"FADD32I", OpcodeChar(OP_FADD32I, SP_OP)},