From 46045592211f1999983755726263c60267f8ef2f Mon Sep 17 00:00:00 2001 From: Jimmy Kwa Date: Thu, 6 Sep 2012 13:53:41 -0800 Subject: Several changes to ptxplus towards getting the sphyraena benchmark to work. Add .false modifier to cuobjdump_to_ptxplus. It isn't supported in gpgpusim yet since we don't know what it does. Fixed most of the issues with global (const14) variable not being declared properly. Added "BRX" instruction to cuobjdump_to_ptxplus and some support for it in gpgpusim. There are other issues with it that still need to be worked out. Added support for translating IADD.CARRY sass instruction into ptxplus addp instructions. Fixed a bug with generating ".half" modifiers on instructions so the ptxplus instruction addresses should match sass addresses now. Separated ssy instructions from nop. However, they are still simulated as nop in gpgpusim. Sometime cuobjdump generate a blank link that takes up an address slot. This was changed to a nop. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14001] --- cuobjdump_to_ptxplus/cuobjdumpInstList.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cuobjdump_to_ptxplus/cuobjdumpInstList.h') diff --git a/cuobjdump_to_ptxplus/cuobjdumpInstList.h b/cuobjdump_to_ptxplus/cuobjdumpInstList.h index d07e72d..da8f8b0 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInstList.h +++ b/cuobjdump_to_ptxplus/cuobjdumpInstList.h @@ -116,6 +116,7 @@ protected: std::list m_localMemoryList; std::list m_realTexList; // Stores the real names of tex variables std::list m_constMemoryPtrList; + int m_globalVarShndx; //records shndx value of global variables in the elf file SYMTAB // Functions: std::string parseCuobjdumpPredicate(std::string pred); @@ -158,6 +159,10 @@ public: void addConstMemoryPtr(const char* bytes, const char* offset, const char* name); void setConstMemoryMap(const char* kernelname, int index); void setLocalMemoryMap(const char* kernelname, int index); + void setglobalVarShndx(const char* shndx); + int getglobalVarShndx(); + void addGlobalMemoryID(const char* bytes, const char* name); + void updateGlobalMemoryID(const char* offset, const char* name); void reverseConstMemory(); void addEntryLocalMemory(int value, int entryIndex); void readOtherConstMemoryFromBinFile(std::string binString); // read in constant memory from bin file -- cgit v1.3