17318 Commits

Author SHA1 Message Date
Ryan Kurtz
8b6bbb857a GP-0: Adding ChangeHistory for 12.1.4 Ghidra_12.1.4_build 2026-09-11 06:14:59 -04:00
Ryan Kurtz
1aef337b59 Merge branch 'GP-7238_ryanmkurtz_swift' into patch 2026-09-11 05:52:12 -04:00
Ryan Kurtz
6d4ec01200 GP-7238: Finding Swift demangler with GHIDRA_SWIFT_DEMANGLER env var, if
not found at a known location
2026-09-11 05:50:28 -04:00
ghidra1
841266bbeb Merge branch 'GP-7267_ghidra1_PR-9163_shuffle2_HexagonFixes' into patch
(Closes #9163)
2026-09-10 19:06:20 -04:00
ghidra1
dbec68725c GP-7267 Minor revision to Hexagon pcode 2026-09-10 19:02:19 -04:00
Shawn Hoffman
91c767284d hexagon: swap vmin/vmax/shuffo/vaddw operand display to match LLVM
Same class of bug as the earlier min/minu fix: the displayed source
operand order contradicts the instruction syntax recorded in each
constructor's own doc comment (and LLVM/the PRM).

  vminb/vminh/vminub/vminuh/vminuw/vminw, vmaxb/vmaxh/vmaxub/vmaxuh/
  vmaxuw/vmaxw and shuffob/shuffoh are documented as "f ( Rtt32 , Rss32 )"
  but displayed Rss before Rtt.
  vaddw and vaddw:sat are documented as "vaddw ( Rss32 , Rtt32 )" but
  displayed Rtt before Rss.

Includes the V62 "Rdd32,Pe4 = vminub ( Rtt32 , Rss32 )" form.

The pcodeop / inline arguments are swapped to match, so the emitted call
argument order still follows the displayed operand order. For the min,
max and add forms this is semantically neutral (all commutative); it
matters for vminubPred, whose result is defined relative to the first
operand, and for the opaque shuffob/shuffoh, whose operand roles are
positional.

Verified: SleighCompile clean, all 60 Hexagon unit tests pass. No test
expectations change (the one test pinning vminub uses R1R0 for both
sources).
2026-09-10 16:54:28 -04:00
Shawn Hoffman
daf46c9777 Hexagon: expand tests for shift edge cases and recent fixes 2026-09-10 16:54:25 -04:00
Shawn Hoffman
55f425223b hexagon: drop stale TODOs that no longer apply 2026-09-10 16:54:23 -04:00
Shawn Hoffman
ce95d4edb3 hexagon_float: build sfmake/dfmake from bit pattern per V73 2026-09-10 16:54:20 -04:00
Shawn Hoffman
0345ff83cf hexagon: refresh comments to reflect current support
Records the decode coverage this branch adds (V66 ZReg matrix extension
and V81 valign4, both decode-only stubs) and narrows the shift-amount
KNOWN ISSUE to what is actually fixed: register-form shifts now model
the 7-bit signed shift amount, other forms may still assume positive.
2026-09-10 16:54:18 -04:00
Shawn Hoffman
d29b9c718f hexagon: model sxt7 shift amount in register-form shifts 2026-09-10 16:54:15 -04:00
Shawn Hoffman
0402ed5476 hexagon: drop redundant togglebit shift-count guard 2026-09-10 16:54:13 -04:00
Shawn Hoffman
9d4c191a46 Hexagon: add stub- and packet-coverage regression-pin tests
Two new JUnit tests pin the disassembly text emitted for representative
encodings of the recently added decoder stubs (HexagonStubCoverageTest)
and packet-context decoding (HexagonPacketCoverageTest), so a future edit
that accidentally drops or shadows a constructor will surface as a
deliberate review point rather than a silent regression.
2026-09-10 16:54:10 -04:00
Shawn Hoffman
671add87ab hexagon_hvx: add V81 valign4 stub
Adds a decode-only stub for V6_valign4.

The six veqhf/veqsf qfloat-accumulating predicate forms that originally
accompanied this are not added: upstream's hexagon_hvx2.sinc implements
all of them with real p-code.
2026-09-10 16:54:08 -04:00
Shawn Hoffman
42ea4784b2 hexagon_hvx: tighten vassign bit constraints
Replace the open-ended op21/op1617 patterns on the existing vassign and
Vsf/Vhf-from-qf32/qf16 constructors with the full op2123/op1620 fields,
matching the LLVM encodings exactly so neighbouring stubs don't decode
ambiguously.
2026-09-10 16:54:05 -04:00
Shawn Hoffman
8215297c83 hexagon: add V68 memw_aq decode-only stub
Acquire-load form L2_loadw_aq from V68; same iclass/op2127 family as the
existing memw_phys constructor but distinguished by op0513=0x40.
2026-09-10 13:55:39 -04:00
Shawn Hoffman
0740f82ce4 hexagon: swap min/minu operand display to match LLVM
LLVM prints min as "min(Rt, Rs)" not "min(Rs, Rt)".  Reorder the
display tokens for the four scalar/pair min and minu constructors;
pcode already evaluates min(rt, rs).
2026-09-10 13:55:37 -04:00
Shawn Hoffman
51685f00ff hexagon: drop spurious Rd5 from ictagw match list
ictagw has no destination register; Rd5 was listed in the constructor's
operand expression but never used.  Remove it so the constructor only
binds the operands it actually consumes.
2026-09-10 13:55:34 -04:00
Shawn Hoffman
80c5e9d07f hexagon: fix M2_mpyu_*_s1 typo squaring Rs instead of Rs*Rt
Both the plain and accumulating M2_mpyu :<<1 forms had zext(Rs)*zext(Rs).
Multiply by Rt as the encoding intends.
2026-09-10 13:55:32 -04:00
Shawn Hoffman
b8bcbac047 hexagon: prefix !cmp.eq/gt/gtu rather than suffix
LLVM disassembles the negated cmp constructors as "!cmp.eq Pd, Rs, Rt"
not "cmp.eq! Pd, Rs, Rt".  Quote the bang into the head token so the
display matches; pcode is unchanged.
2026-09-10 13:55:29 -04:00
Shawn Hoffman
ed3cbae4aa hexagon: fix rol pcode to compute true rotate
The rol* constructors were emitting (rs << N) | zext(rs s< 0) which only
folds the sign bit into bit 0 instead of rotating the high bits back into
the low.  Use the standard (x << N) | (x >> (W - N)) pattern so the
single-shot, accumulating, and bitwise variants all match the ISA.
2026-09-10 13:55:27 -04:00
Ryan Kurtz
3944dba4ba Merge remote-tracking branch
'origin/GP-7265_ryanmkurtz_script-error-output' into patch
(Closes #9551)
2026-09-09 13:29:17 -04:00
Ryan Kurtz
a459277c35 GP-7265: Prevent GhidraScript compilation errors from being hidden 2026-09-09 12:21:35 -04:00
Ryan Kurtz
212bd9909a Merge remote-tracking branch 'origin/GP-0-dragonmacher-script-fix' into patch 2026-09-03 13:07:10 -04:00
dragonmacher
5d75f6905b Fixed script dialog issue 2026-09-03 11:29:42 -04:00
Ryan Kurtz
5b6ef3a5cc Merge remote-tracking branch 'origin/GP-6698_ghidorahrex_superh_shift_mask--SQUASHED' into patch 2026-09-01 11:19:01 -04:00
ghidorahrex
3f16b10680 GP-6698: Fixed SuperH shift instruction bit masking 2026-09-01 10:04:51 -04:00
Ryan Kurtz
0fb5ffc31b Merge branch 'GP-7205_ryanmkurtz_x64-chained-unwind' into patch 2026-09-01 06:36:12 -04:00
Ryan Kurtz
bc3978a78e GP-7205: Certify 2026-09-01 06:31:10 -04:00
8damon
89ace222c3 Fix cyclic x64 unwind chain parsing 2026-09-01 06:20:56 -04:00
Ryan Kurtz
7940485949 Merge remote-tracking branch
'origin/GP-7027_ghidorahrex_x86_zext_upper_32_fix--SQUASHED' into patch
(Closes #9325)
2026-08-31 13:24:43 -04:00
ghidorahrex
1735e73f4e GP-7027: Fixed issue with x86 64 not zeroing out 32-bit partial regs 2026-08-31 13:02:20 -04:00
Ryan Kurtz
680e2b103a Merge remote-tracking branch
'origin/GP-7041_ghidorahrex_PR-9345_crbednarz_nds32-fmul-fdiv-match-fix'
into patch (Closes #9345)
2026-08-31 11:29:30 -04:00
Ryan Kurtz
9cfd36f755 Merge remote-tracking branch
'origin/GP-6951_ghidorahrex_PR-9082_liamwhite_sleigh-aarch64-extendreg-s'
into patch (Closes #9042, Closes #9082, Closes #9515)
2026-08-31 11:24:14 -04:00
Ryan Kurtz
75964f2f50 GP-7176: Checking for unsupported paths during library loading 2026-08-31 11:16:42 -04:00
Ryan Kurtz
6b40e4a239 GP-7173: Limiting recursion depth in OmfIteratedData.java 2026-08-31 07:10:33 -04:00
Ryan Kurtz
fef3f4c9a5 GP-7174/7175: Fixing string formatter 2026-08-31 07:02:26 -04:00
Ryan Kurtz
0423f95d0f GP-7174: Checking num_images value in AndroidBootLoaderHeader.java 2026-08-31 06:41:41 -04:00
Ryan Kurtz
2fce7f119d GP-7175: Checking count values in Mach-O BindingTable.java and
RebaseTable.java
2026-08-31 06:27:14 -04:00
Ryan Kurtz
5f2c181c3e GP-0: Upping gradle wrapper to 9.7.1 2026-08-31 04:57:23 -04:00
Ryan Kurtz
cdf9542249 GP-7171: Upgrading commons-collections4 to 4.6.0 2026-08-28 07:13:24 -04:00
Ryan Kurtz
2a6e9bacea GP-7172: Pass -- to native swift demangler to indicate end of flags 2026-08-28 06:44:28 -04:00
Ryan Kurtz
594da04843 GP-7190: Decrementing lock count when exception occurs in
domainObj.prepareToSave()
2026-08-28 05:34:13 -04:00
ghidra1
b7937a39d5 GP-7110 Additional Hexagon fixes 2026-08-27 17:59:27 -04:00
ghidra1
6845af53ff GP-1 Cleanup Hexagon file syntax 2026-08-27 13:29:45 -04:00
d-millar
4781d8c6a9 GP-0: test fix occasioned by 699c2b1 2026-08-26 11:54:03 -04:00
ghidra1
d5fe2786eb Merge remote-tracking branch 'origin/GP-7110_ghidra1_HexagonRework' into patch 2026-08-25 16:34:02 -04:00
ghidra1
ce276c838a GP-7110 Rework of Hexagon module, includes dont-care-bit fixes plus
added missing instructions
2026-08-25 16:32:29 -04:00
Ryan Kurtz
532a0e832a Merge branch 'GP-7157_ryanmkurtz_PR-9501_fefacio_fix-dlgitemtemplate-id'
into patch (Closes #9500, Closes #9501)
2026-08-20 05:29:01 -04:00
fefacio
dc4d4571db #9500 Fix DLGITEMTEMPLATE.id type 2026-08-20 05:25:50 -04:00