Commit graph

842 commits

Author SHA1 Message Date
ghidorahrex
d7877b0353 Updated pcode tests for PIC30 issues. 2019-07-19 13:22:06 -04:00
ghidorahrex
05d9679a3d Added instructions that correctly emulate/model/decompile division for
the PIC-24 and PIC-30.
2019-07-19 13:22:05 -04:00
Ryan Kurtz
eba358f1d2 Merge remote-tracking branch 'origin/GT-3018_ghidorahrex_PR-800_mumbel_ARM_vmov_thumb_instruction' 2019-07-19 12:19:49 -04:00
ghidra1
6a6bb63932 Corrected ELF Import issue where FileBytes can not be used in some load
situations (e.g., PIC-30)
2019-07-19 10:56:01 -04:00
Philip Pemberton
a8f27f6484 TRAPV/TRAPcc don't use the TRAP7 vector, they use the TRAPV vector 2019-07-18 08:54:54 -04:00
Philip Pemberton
919762c1cc Prefix trap(), make parameter the trap number
* Add "__m68k_" prefix to `trap()` to indicate that it's a CPU
    intrinsic
  * `__m68k_trap()` now takes the trap number as a parameter, which
    lines up better with established 68k norms (`TRAP #n` is the
    assembly syntax)
2019-07-18 08:54:28 -04:00
Philip Pemberton
f127c3c0fc M68000: set alignment, full SR decode, TRAPV as address
* Specify instruction alignment to be 2 bytes
  * Fully decode the status register (add trace and supervisor flags and interrupt priority)
  * Decode TRAPs into the vector addresses to make code easier to follow
2019-07-18 08:54:09 -04:00
Ryan Kurtz
674d5cee53 Merge remote-tracking branch 'origin/GT-3015_ryanmkurtz_PR-756_Piruzzolo_AAM' 2019-07-18 08:48:30 -04:00
emteere
a842f89e6e GT-2907_emteere Fixed correct setting of CF for lsl.b, lsl.w, asl.b,
asl.w
2019-07-18 08:29:29 -04:00
mumbel
7fc76dbca4 [tricore] TRICORE processor module 2019-07-17 18:00:12 -05:00
ghidra1
e565601299 Merge remote-tracking branch 'origin/ghidra1_BitFields' 2019-07-17 18:45:27 -04:00
mumbel
5521906393 vmov instruction was using wrong varaible to allow for THUMB
and ARM resulting in the wrong register being attached/selected.

The U bit was also flipped `unsigned = (U == '1');`
unsigned now has bit set and signed is unset
2019-07-17 17:28:53 -05:00
Ryan Kurtz
c8e117736c Merge remote-tracking branch 'origin/GT-3011_ghidorahrex_PR-659_roblabla_AARCH64_volatile_system_registers' 2019-07-17 14:35:32 -04:00
Ryan Kurtz
305cb0f1cb Merge remote-tracking branch 'origin/GT-3009_ghidorahrex_PR-724_pmnxis_AARCH64_index' 2019-07-17 12:41:29 -04:00
ghidorahrex
b61f8c29ff GT-3009: Accepting pull request
Pulled-from: pmnxis <pmnxis@users.noreply.github.com>
2019-07-17 12:37:14 -04:00
Ryan Kurtz
a4f7cdc414 Merge remote-tracking branch 'origin/GT-2940_GhidorahRex_PR_Support_for_RD_WR_FS_GS_BASE' 2019-07-17 12:33:49 -04:00
ghidra1
a7345527c9 BitFields - added preliminary support for composite bitfields 2019-07-17 11:55:29 -04:00
mumbel
f36d7a29da prime 1E, OCTEON/DSP, and cleanup
- The EVA instructions have prime=0x1E, this should be 0x1F. These
  instructions are used to access user mode virtual address from
  kernel mode, so probably not used often.

- General cleanup in the bit pattern.  There was mixed used of
  decimal and hex values for the same token, converted >9 to hex

- Added OCTEON instructions: lbx, blux, ldx, lhx, lhux, lwx, and lwux

- Implemented the multiple accumulator found in DSP for:
  madd, maddu, mfhi, mflo, msub, msubu, mthi, mtlo, mult, and multu

  These changes convert '00' to ac in the bit pattern and attach to
  the original lo/hi pair and now lo1/hi1, lo2/hi2, and lo3/hi3 pairs.
  The value of ac can range from 0 to 3.  When ac=0, this refers to
  the original HI/LO register pair of the architecture.

- some minor whitespace cleanup
2019-07-17 10:59:37 -04:00
Ryan Kurtz
7a696dd6c2 Merge remote-tracking branch 'origin/GT-3007_ryanmkurtz_PR-719_williballenthin_patterncontraints' 2019-07-17 09:21:43 -04:00
Ryan Kurtz
c6f0bbc614 Merge remote-tracking branch 'origin/GT-3006_ryanmkurtz_PR-671_marpie_implement_callfixup_chkstk' 2019-07-17 09:01:23 -04:00
Ryan Kurtz
a4b9304cd8 Merge remote-tracking branch 'origin/GT-3004_ryanmkurtz_PR-771_GregoryMorse_x86_16_ida' 2019-07-17 08:19:50 -04:00
Ryan Kurtz
7617f30756 GT-2845: Removing MemoryConflictHandler. 2019-07-16 14:08:25 -04:00
ghidra1
12af9291c9 GT-2845 - updated ELF Loader to utilize FileBytes and eliminated its use
of MemoryBlockUtil

Conflicts:
	Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/ElfLoader.java
2019-07-16 12:34:19 -04:00
dragonmacher
83d85daabc Fixed tools unable to restore Listing location information; fixed
warning getting printed to console for non-Java binaries
2019-07-15 17:25:02 -04:00
caheckman
f38bd221b5 Merge branch 'caheckman_AARCH64neon' 2019-07-15 15:21:17 -04:00
caheckman
ab7e57c521 Merge remote-tracking branch 'github/Github-732_caheckman_x64cspec' 2019-07-15 15:20:40 -04:00
caheckman
be177cb39b Refactor macros for zero extending into AARCH64 z registers 2019-07-15 15:17:58 -04:00
caheckman
12d3da029b Refactor ParamEntry look-up allowing "contained by" discovery 2019-07-15 15:15:37 -04:00
caheckman
ef12c20829 Fix for "Unknown function tag: scope" error 2019-07-15 15:13:11 -04:00
Ryan Kurtz
1cc8de3e67 Merge remote-tracking branch 'origin/GT-2999_ryanmkurtz_PR-775_redfast00_aarch64-relocation-jump26' 2019-07-15 12:49:18 -04:00
ghidra1
e0e2c58eb7 Merge remote-tracking branch 'origin/ghidra1_Emulator'
Conflicts:
	gradle/root/eclipse.gradle
2019-07-12 16:14:17 -04:00
emteere
c96d2f09ce emteere re-re-fixing compile errors. 2019-07-11 16:29:38 -04:00
redfast00
70ce145292
Add R_AARCH64_JUMP26 relocation handler 2019-07-11 19:24:51 +02:00
James
e3ae5a0370 GT_2757 fixed java stream decompile bug 2019-07-10 15:34:26 -04:00
Gregory Morse
70a7d03099
Update x86.ldefs
x86 16-bit in IDA Pro >= 7.0 and probably earlier uses the metapc processor type and not any of those listed anymore.  I am not sure how many others should also be included but probably all of them.  The bit size is the primary selection, not the processor type anymore so although metapc is confirmed, perhaps the following should also be added as they are under 32-bit:
	<external_name tool="IDA-PRO" name="80686p"/>
	<external_name tool="IDA-PRO" name="k62"/>
	<external_name tool="IDA-PRO" name="p2"/>
	<external_name tool="IDA-PRO" name="p3"/>
	<external_name tool="IDA-PRO" name="athlon"/>
	<external_name tool="IDA-PRO" name="p4"/>

Though this is certainly a legacy IDA 5.x and maybe 6.x issue mainly.  AFAIK, all the >= 7.0 IDA versions use metapc for all x86.  Specific processors were any early feature that was consolidated there.
2019-07-10 01:57:16 +02:00
Piruzzolo
b549c0d8fc
removes unneeded == 1 2019-07-09 17:42:29 +02:00
Piruzzolo
d98290061d
Fix AAA, AAM, DAA, DAS x86 intructions + typo fix
According to Intel manual, the AAM instruction has a MOD, not an AND. Likely a typo. More, (AF == 1) added instead of AF (but I think it's pretty much the same)
+ bonus typo fix
2019-07-04 01:02:55 +02:00
Ryan Kurtz
037060d124 GT-2967: 8051 needs Base dependency. 2019-07-03 10:10:32 -04:00
Ryan Kurtz
11f1a824a7 GT-2967: Fixing 8051 build.gradle to be a proper Java project (might fix
#736).
2019-07-02 12:17:51 -04:00
Ryan Kurtz
eadf39e6e4 GT-2902: Fixing compilation problem in PA-RISC. 2019-06-27 13:14:36 -04:00
Ryan Kurtz
c8ae78ee59 Merge remote-tracking branch 'origin/emteere_GT-2902' 2019-06-26 14:01:53 -04:00
pmnxis
bdbb644a92 aarch64(ARMv8A) index added
Refereced this DDI08487D by ARM.
https://static.docs.arm.com/ddi0487/db/DDI0487D_b_armv8_arm.pdf
Detail things is from this repo https://github.com/pmnxis/gen_ghidra_aarch64_idx
2019-06-26 12:02:45 +09:00
pmnxis
41119e3f7a Revert "Added Aarch64 (ARMv8) manul index"
This reverts commit 8a400b0d77.
2019-06-26 12:00:57 +09:00
pmnxis
8a400b0d77 Added Aarch64 (ARMv8) manul index
Refereced this DDI08487D by ARM.
https://static.docs.arm.com/ddi0487/db/DDI0487D_b_armv8_arm.pdf
Detail things is from this repo https://github.com/pmnxis/gen_ghidra_aarch64_idx
2019-06-26 11:58:29 +09:00
ghidra1
dd15435371 Added P-Code Test framework to facilitate semantic verification through
emulation
2019-06-25 09:37:15 -04:00
Willi Ballenthin
b0f6af4930
x86/data/patterns/patternconstraints: remove extra text node
removing a line that appears to be superfluous. also, fix indentation.

unfortunately, i have *not* tested this, as i noticed this apparent extra line during a visual inspection. i don't have a build environment currently configured.
2019-06-24 15:04:37 -06:00
paramjot@gmail.com
8cdf270847 Initial SuperH SH-1/SH-2 Processor Support 2019-06-23 17:58:32 -04:00
Ryan Kurtz
a1574d3154 Merge remote-tracking branch 'origin/GT-2876_ghidorahrex_PR-520_brakhane_z80_fix_alternate_regs' 2019-06-20 15:01:36 -04:00
Ryan Kurtz
a1d68852ca Merge remote-tracking branch 'origin/GT-2943_GhidorahRex_PR-kreeblah_Update_x86_manual_index' 2019-06-20 07:59:03 -04:00
GhidorahRex
9f3c6a604b Removed unused qRegPair tokens and attach vars. 2019-06-11 10:44:22 -04:00