dyninst.git
4 years agoModified logic for constructing an AST for a branch instruction.
Sunny Shah [Wed, 11 Nov 2015 20:14:48 +0000 (14:14 -0600)]
Modified logic for constructing an AST for a branch instruction.

Branches that are calls (BL and BLR) will add PC+4 as fallthrough instead of LR.

4 years agoresoleved conflicts
SteveXiSong [Tue, 10 Nov 2015 19:37:30 +0000 (13:37 -0600)]
resoleved conflicts

4 years agocommited weak solution to aliasing
SteveXiSong [Tue, 10 Nov 2015 19:34:42 +0000 (13:34 -0600)]
commited weak solution to aliasing

4 years agoFixed marking of an instruction as invalid by setting opcode to invalid and clearing...
Sunny Shah [Tue, 10 Nov 2015 17:41:45 +0000 (11:41 -0600)]
Fixed marking of an instruction as invalid by setting opcode to invalid and clearing the operands.
Modified read and write status of PSTATE for system instructions, as well as other changes to system instructions to handle operands correctly.

4 years agofixed bad switch cases
SteveXiSong [Tue, 10 Nov 2015 00:07:09 +0000 (18:07 -0600)]
fixed bad switch cases

4 years agoFixed detection of flaoting point compare instruction.
Sunny Shah [Mon, 9 Nov 2015 22:59:21 +0000 (16:59 -0600)]
Fixed detection of flaoting point compare instruction.

4 years agoFixed build issues relating to creating an immediate operand.
Sunny Shah [Mon, 9 Nov 2015 22:35:46 +0000 (16:35 -0600)]
Fixed build issues relating to creating an immediate operand.

4 years agoFixed build issues.
Sunny Shah [Mon, 9 Nov 2015 22:30:05 +0000 (16:30 -0600)]
Fixed build issues.

4 years agoFixed a minor bug in the instruction table.
Sunny Shah [Fri, 6 Nov 2015 21:48:21 +0000 (15:48 -0600)]
Fixed a minor bug in the instruction table.

No list_of() should be used when assigning an empty vector.

4 years agoChanged initialization of condStringMap to use the assign method which is passed...
Sunny Shah [Fri, 6 Nov 2015 20:49:16 +0000 (14:49 -0600)]
Changed initialization of condStringMap to use the assign method which is passed in an array.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Fri, 6 Nov 2015 15:29:02 +0000 (09:29 -0600)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

Conflicts:
instructionAPI/src/InstructionDecoder-aarch64.C

4 years agoFixed handling of option field to match decode semantics in the manual as opposed...
Sunny Shah [Fri, 6 Nov 2015 15:26:14 +0000 (09:26 -0600)]
Fixed handling of option field to match decode semantics in the manual as opposed to the textual description of the field.

4 years agoadd field calls for '!=' fields
SteveXiSong [Fri, 6 Nov 2015 00:07:03 +0000 (18:07 -0600)]
add field calls for '!=' fields

4 years agoresolved conflicts
SteveXiSong [Thu, 5 Nov 2015 21:35:39 +0000 (15:35 -0600)]
resolved conflicts

4 years agofixed some minor bugs for ld/st
SteveXiSong [Thu, 5 Nov 2015 21:30:35 +0000 (15:30 -0600)]
fixed some minor bugs for ld/st

4 years agoFixes as part of validation.
Sunny Shah [Thu, 5 Nov 2015 17:31:39 +0000 (11:31 -0600)]
Fixes as part of validation.

* Added InstructionDecoder-aarch64 as a friend class of Operation so that mnemonics can be modified for conditional branches. Added a map of condition code to its string representation - the mnemonic is modified accordingly.
* Updated decoder and instruction table with output of most recent script.
* Added support for add/sub extended register instructions.
* Few other fixes for floating point instructions.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Wed, 4 Nov 2015 21:10:55 +0000 (15:10 -0600)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agovalidated ld class.
SteveXiSong [Wed, 4 Nov 2015 21:10:47 +0000 (15:10 -0600)]
validated ld class.

4 years agoModified register names for floating point registers.
Sunny Shah [Wed, 4 Nov 2015 16:16:07 +0000 (10:16 -0600)]
Modified register names for floating point registers.

Register names for FP registers were using incorrect values from dyn_regs.h for half/single/double precision. Fixed these to use names according to the manual.
Added support for zero-variants of some FP isntructions.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 3 Nov 2015 03:40:07 +0000 (21:40 -0600)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years ago1.re-ordered the alias instructions as a weak solution. 2.fixed some ld/st bugs....
SteveXiSong [Tue, 3 Nov 2015 03:39:37 +0000 (21:39 -0600)]
1.re-ordered the alias instructions as a weak solution. 2.fixed some ld/st bugs. 3.fixed a bug in unsign_extend64

4 years agoFixed ARM64 register sizes. Floating point register sizes were specified in accordanc...
Sunny Shah [Fri, 30 Oct 2015 21:05:21 +0000 (16:05 -0500)]
Fixed ARM64 register sizes. Floating point register sizes were specified in accordance with the nomenclature in the ARM manual, which differ from their actual sizes.

4 years agoupdate generator: type field is generated with using template
SteveXiSong [Thu, 29 Oct 2015 21:59:11 +0000 (16:59 -0500)]
update generator: type field is generated with using template

4 years agorestore the operand calling order
SteveXiSong [Thu, 29 Oct 2015 02:43:27 +0000 (21:43 -0500)]
restore the operand calling order

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Wed, 28 Oct 2015 19:57:02 +0000 (14:57 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agomark TODO functions
SteveXiSong [Wed, 28 Oct 2015 19:56:54 +0000 (14:56 -0500)]
mark TODO functions

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Tue, 27 Oct 2015 22:16:04 +0000 (17:16 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoAdded complete instruction and decoder table generated from the python script.
Sunny Shah [Tue, 27 Oct 2015 22:14:48 +0000 (17:14 -0500)]
Added complete instruction and decoder table generated from the python script.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 27 Oct 2015 22:04:01 +0000 (17:04 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agochange unallocated to IVALID
SteveXiSong [Tue, 27 Oct 2015 22:03:25 +0000 (17:03 -0500)]
change unallocated to IVALID

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Tue, 27 Oct 2015 22:00:01 +0000 (17:00 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoChanged order of start and end bit names in oeprand templates and added updated ARM64...
Sunny Shah [Tue, 27 Oct 2015 21:59:38 +0000 (16:59 -0500)]
Changed order of start and end bit names in oeprand templates and added updated ARM64 opcode entry IDs to the entry ID enum.

4 years agoreplace ',' with COMMA
SteveXiSong [Tue, 27 Oct 2015 21:59:36 +0000 (16:59 -0500)]
replace ',' with COMMA

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 27 Oct 2015 21:42:28 +0000 (16:42 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoadjust the decoder generator
SteveXiSong [Tue, 27 Oct 2015 21:42:01 +0000 (16:42 -0500)]
adjust the decoder generator

4 years agoAdded support for floating point immediate instruction category.
Sunny Shah [Tue, 27 Oct 2015 17:55:41 +0000 (12:55 -0500)]
Added support for floating point immediate instruction category.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Mon, 26 Oct 2015 22:08:05 +0000 (17:08 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoadded functions to distinguish single precision and double precision insn. Updated...
SteveXiSong [Mon, 26 Oct 2015 22:07:46 +0000 (17:07 -0500)]
added functions to distinguish single precision and double precision insn. Updated function names and resolved some consistency issues

4 years agoAdded remaining functionality for processing the option field.
Sunny Shah [Mon, 26 Oct 2015 21:40:49 +0000 (16:40 -0500)]
Added remaining functionality for processing the option field.

This takes care of cases which involve using LSL in the option field. The appropriate left shift or register expression will be made based on the value of "option", Rn and Rd registers and the shift amount.

4 years agoFixed bugs in newly added binary functions.
Sunny Shah [Mon, 26 Oct 2015 18:27:13 +0000 (13:27 -0500)]
Fixed bugs in newly added binary functions.

Following bugs fixed:
* Overload for | was calling doAnd, and vice versa.
* Right rotate wasn't correctly handling rotate amounts greater than the length of the field to be rotated.

4 years agofilled operand functions for ld/st reg
SteveXiSong [Fri, 23 Oct 2015 22:02:30 +0000 (17:02 -0500)]
filled operand functions for ld/st reg

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Fri, 23 Oct 2015 19:52:43 +0000 (14:52 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoupdated generator and instructionDecoder
SteveXiSong [Fri, 23 Oct 2015 19:52:34 +0000 (14:52 -0500)]
updated generator and instructionDecoder

4 years agoAdded a new macro to check branching instructions and run doDelayedDecode immediately...
Sunny Shah [Fri, 23 Oct 2015 16:44:36 +0000 (11:44 -0500)]
Added a new macro to check branching instructions and run doDelayedDecode immediately is the macro is satisfied

4 years agoFixed build errors and removed unneeded functions from InstructionDecoderImpl
Sunny Shah [Fri, 23 Oct 2015 16:34:59 +0000 (11:34 -0500)]
Fixed build errors and removed unneeded functions from InstructionDecoderImpl

4 years agoRemoving the extendRequired attribute for Register. We don't say if extension is...
Sunny Shah [Fri, 23 Oct 2015 16:00:06 +0000 (11:00 -0500)]
Removing the extendRequired attribute for Register. We don't say if extension is reuqired and let the user handle it based on the type of the Register's Result member.

4 years agomerged two memRefs to one. fixed compiled errors for ld/st classes
SteveXiSong [Thu, 22 Oct 2015 22:31:47 +0000 (17:31 -0500)]
merged two memRefs to one. fixed compiled errors for ld/st classes

4 years agoupdated decoder aarch64
SteveXiSong [Thu, 22 Oct 2015 21:53:35 +0000 (16:53 -0500)]
updated decoder aarch64

4 years agoNew constructor for Register and condition field parsing for ARM64.
Sunny Shah [Wed, 21 Oct 2015 23:26:21 +0000 (18:26 -0500)]
New constructor for Register and condition field parsing for ARM64.

* Added a new constructor to the Register class which takes a Result_Type in addition to the usual constructor's arguments. This indicates if a sign/zero extension is to be applied to the register's value and what sub-set of the register to extend (byte, word, double-word). The presence or absence of such a requirement is indicated bya new field called "extendRequired" accessible via the "extend" method.
* Added a new signature for the makeRegisterExpression function to support the newly added constructor as described above. This is used for ARM64 instructions which have the "option" field.
* cond field in ARM64 instructions will now be added as an immediate into the AST.
* Instructions writing to NZCV will add an immediate whose upper 4 bits will have the NZCV value.

4 years agoRegister alias masks for ARM64 were not named correctly and were inconsistent with...
Sunny Shah [Tue, 20 Oct 2015 20:58:52 +0000 (15:58 -0500)]
Register alias masks for ARM64 were not named correctly and were inconsistent with the dyninst model. This has been fixed.
Also enabled getSubRegValue() method for ARM64.

4 years agoAdded support for handling 32-bit registers. These registers numbered w0-w30, wsp...
Sunny Shah [Tue, 20 Oct 2015 20:17:22 +0000 (15:17 -0500)]
Added support for handling 32-bit registers. These registers numbered w0-w30, wsp and wzr alias into the corresponding 64-bit registers.

4 years agoadded load/store exclusive functions
SteveXiSong [Tue, 20 Oct 2015 17:50:18 +0000 (12:50 -0500)]
added load/store exclusive functions

4 years agoRe-structured variable and method declarations
Sunny Shah [Tue, 20 Oct 2015 17:32:17 +0000 (12:32 -0500)]
Re-structured variable and method declarations

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Mon, 19 Oct 2015 21:55:40 +0000 (16:55 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoSupport for zero register and fixing up of sub-trees using shift expressions.
Sunny Shah [Mon, 19 Oct 2015 21:52:34 +0000 (16:52 -0500)]
Support for zero register and fixing up of sub-trees using shift expressions.

* Added support for recognising zero register. This is also added as a new SPR in dyn_regs.
* Removed expression building interfaces for AND and OR operations. These are currently not used in any instruction.
* Fixed sub-trees in instructions that use some type of shift on an operand. The trees better reflect the structure by being more explicit about the values used.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Mon, 19 Oct 2015 19:05:07 +0000 (14:05 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoupdated decoder generator. Fixed a bug handling bit x
SteveXiSong [Mon, 19 Oct 2015 19:04:33 +0000 (14:04 -0500)]
updated decoder generator. Fixed a bug handling bit x

4 years agoBinary functions for handling right shitfs/rotates and sign extensions.
Sunny Shah [Mon, 19 Oct 2015 16:15:53 +0000 (11:15 -0500)]
Binary functions for handling right shitfs/rotates and sign extensions.

* Added new binary functions for handling arithmetic and logical right shifts, right rotate, and and or.
* Added new binary functions for handling sign extensions (signed and unsigned). The second operand in these functions is just an Expression with the type to be extended from - this expression has no value.
* Added interfaces in instruction decoder implementation to add expressions using the new functions.
* Modified ARM decoder to use the new functions for instruction categories having the shift field.

4 years agoresolve conflicts
SteveXiSong [Fri, 16 Oct 2015 23:41:18 +0000 (18:41 -0500)]
resolve conflicts

4 years agoupdated decoder generator read-in dir, and updated operand functions for ld/st pair
SteveXiSong [Fri, 16 Oct 2015 23:37:52 +0000 (18:37 -0500)]
updated decoder generator read-in dir, and updated operand functions for ld/st pair

4 years agoAdded condition to set pstate read and write for conditional instructions, and append...
Sunny Shah [Fri, 16 Oct 2015 22:19:33 +0000 (17:19 -0500)]
Added condition to set pstate read and write for conditional instructions, and append the register accordingly.

4 years agoupdated decoder-aarch64 with implmenting operand functions for ld/st pair post and...
SteveXiSong [Fri, 16 Oct 2015 22:01:24 +0000 (17:01 -0500)]
updated decoder-aarch64 with implmenting operand functions for ld/st pair post and pre index

4 years agoupdated decoder generator and resolved compiling errors caused by Steve
SteveXiSong [Fri, 16 Oct 2015 20:12:50 +0000 (15:12 -0500)]
updated decoder generator and resolved compiling errors caused by Steve

4 years agoAdded support for branching instructions and PC-relative addressing instructions.
Sunny Shah [Fri, 16 Oct 2015 19:08:33 +0000 (14:08 -0500)]
Added support for branching instructions and PC-relative addressing instructions.

4 years agoFixed build errors. This is not a fully working build yet, but a lot of syntax errors...
Sunny Shah [Fri, 16 Oct 2015 18:22:54 +0000 (13:22 -0500)]
Fixed build errors. This is not a fully working build yet, but a lot of syntax errors are now resolved.

4 years agoadded operand functions for ld/st pre and post index
SteveXiSong [Thu, 15 Oct 2015 22:00:09 +0000 (17:00 -0500)]
added operand functions for ld/st pre and post index

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Thu, 15 Oct 2015 17:37:37 +0000 (12:37 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoupdated decoder-aarch64. Added functions for ld/st unsigned imm
SteveXiSong [Thu, 15 Oct 2015 17:37:30 +0000 (12:37 -0500)]
updated decoder-aarch64. Added functions for ld/st unsigned imm

4 years agoRemoved stray HEAD comments from previous merge.
Sunny Shah [Thu, 15 Oct 2015 16:13:27 +0000 (11:13 -0500)]
Removed stray HEAD comments from previous merge.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Thu, 15 Oct 2015 16:10:54 +0000 (11:10 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

Conflicts:
instructionAPI/src/InstructionDecoder-aarch64.C
instructionAPI/src/InstructionDecoder-aarch64.h

4 years agoImmediate and register operands that require other fields in the instruction to be...
Sunny Shah [Thu, 15 Oct 2015 15:56:28 +0000 (10:56 -0500)]
Immediate and register operands that require other fields in the instruction to be parsed before such operands can be added to the AST were getting added out-of-order.
This has been fixed so that all registers and immediates now get added in the order they appear in the instruction.

Rn and Rd should be the stack pointer when 31. This has been added to the code.

Also added the 'scale' immediate operand, used in instructions to cnovert between fixed-point/integer and floating point.

4 years agoupdated decoder with filling and adding ld/st literal relative functions
SteveXiSong [Wed, 14 Oct 2015 20:54:43 +0000 (15:54 -0500)]
updated decoder with filling and adding ld/st literal relative functions

4 years agofixed merger conflicts
SteveXiSong [Wed, 14 Oct 2015 15:27:17 +0000 (10:27 -0500)]
fixed merger conflicts

4 years agoadded Rt2, RnU
SteveXiSong [Wed, 14 Oct 2015 15:25:34 +0000 (10:25 -0500)]
added Rt2, RnU

4 years agoSet a flag if instruction is invalid and set the instruction AST pointer to the unall...
Sunny Shah [Tue, 13 Oct 2015 20:18:57 +0000 (15:18 -0500)]
Set a flag if instruction is invalid and set the instruction AST pointer to the unallocated instruction.

4 years agoMinor syntax modifications.
Sunny Shah [Tue, 13 Oct 2015 18:25:26 +0000 (13:25 -0500)]
Minor syntax modifications.

Also added a to-do for steve for the load-store register offset instructions. I had handled them partially, but since he's working on them I've commented out the calls I had added.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 13 Oct 2015 18:20:11 +0000 (13:20 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoAdded code to handle logical immediate instructions.
Sunny Shah [Tue, 13 Oct 2015 01:03:45 +0000 (20:03 -0500)]
Added code to handle logical immediate instructions.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Mon, 12 Oct 2015 20:41:56 +0000 (15:41 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Mon, 12 Oct 2015 18:35:08 +0000 (13:35 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoAdded functions and #defines to parse and append operands to the AST.
Sunny Shah [Mon, 12 Oct 2015 18:33:09 +0000 (13:33 -0500)]
Added functions and #defines to parse and append operands to the AST.
This will be continued in several commits after this: currently several instruction categories are being handled, although not all complete.

4 years agoupated decoder generator. included Rt2
SteveXiSong [Fri, 9 Oct 2015 21:02:09 +0000 (16:02 -0500)]
upated decoder generator. included Rt2

4 years agoupdated decoder generator. analyzed ld and st
SteveXiSong [Fri, 9 Oct 2015 20:59:20 +0000 (15:59 -0500)]
updated decoder generator. analyzed ld and st

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Fri, 9 Oct 2015 17:51:35 +0000 (12:51 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years ago updated arm64 decoder generator by adding setFPMode
SteveXiSong [Thu, 8 Oct 2015 20:36:06 +0000 (15:36 -0500)]
 updated arm64 decoder generator by adding setFPMode

4 years agoupdated generator
SteveXiSong [Wed, 7 Oct 2015 22:34:21 +0000 (17:34 -0500)]
updated generator

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Tue, 6 Oct 2015 17:22:51 +0000 (12:22 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 6 Oct 2015 17:20:46 +0000 (12:20 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoupdated generator
SteveXiSong [Tue, 6 Oct 2015 17:20:39 +0000 (12:20 -0500)]
updated generator

4 years agoMerge branch 'master' of ssh://git.dyninst.org/pub/dyninst into arm64
Sunny Shah [Tue, 6 Oct 2015 16:31:48 +0000 (11:31 -0500)]
Merge branch 'master' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoAdded function snippets for all operand types.
Sunny Shah [Tue, 6 Oct 2015 02:40:56 +0000 (21:40 -0500)]
Added function snippets for all operand types.

Rd has an implementation which does not check for corner cases yet. Register object forming functions mirror those used for PowerPC.

4 years agoupated decoder.h
SteveXiSong [Mon, 5 Oct 2015 22:31:12 +0000 (17:31 -0500)]
upated decoder.h

4 years agoupdated generator and add 'fn'
SteveXiSong [Mon, 5 Oct 2015 22:14:02 +0000 (17:14 -0500)]
updated generator and add 'fn'

4 years agodeleted odd files
SteveXiSong [Mon, 5 Oct 2015 19:49:12 +0000 (14:49 -0500)]
deleted odd files

4 years agofixed generator bugs. It is nealy good. update gnerated output
SteveXiSong [Mon, 5 Oct 2015 19:45:10 +0000 (14:45 -0500)]
fixed generator bugs. It is nealy good. update gnerated output

4 years agoadded new output
SteveXiSong [Wed, 30 Sep 2015 21:09:42 +0000 (16:09 -0500)]
added new output

4 years agoAdding a temporary program to test the functionality of the decoder table.
Sunny Shah [Fri, 25 Sep 2015 20:58:55 +0000 (15:58 -0500)]
Adding a temporary program to test the functionality of the decoder table.

This program takes an instruction (in hex) as input and outputs the mnemonic of the corresponding instruction. Note that it does not check all corner cases, and hence may SEGFAULT if some entry in the decoder table cannot be found.

geninput.sh generates a file with instructions in hex on each line.

This program will be deleted later once testing is complete.

4 years agoMerge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64
SteveXiSong [Tue, 22 Sep 2015 20:38:06 +0000 (15:38 -0500)]
Merge branch 'arm64' of ssh://git.dyninst.org/pub/dyninst into arm64

4 years agoupdated generator
SteveXiSong [Tue, 22 Sep 2015 20:37:41 +0000 (15:37 -0500)]
updated generator

4 years agoModified findInsnTableIndex (which finds the index into the instruction table for...
Sunny Shah [Tue, 22 Sep 2015 19:18:34 +0000 (14:18 -0500)]
Modified findInsnTableIndex (which finds the index into the instruction table for the given instruction) to execute in fewer lines of code.
Also adjusted data types of indices into the branch map and the decoder table.