Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ SLEIGH & P-Code References
--------------------------
Extensive documentation covering SLEIGH and P-Code is available online:

* `SLEIGH, P-Code Introduction <https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.0.1_build/GhidraDocs/languages/html/sleigh.html>`_
* `P-Code Reference Manual <https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.0.1_build/GhidraDocs/languages/html/pcoderef.html>`_
* `SLEIGH, P-Code Introduction <https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.0.2_build/GhidraDocs/languages/html/sleigh.html>`_
* `P-Code Reference Manual <https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.0.2_build/GhidraDocs/languages/html/pcoderef.html>`_
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pypcode documentation
=====================
pypcode is a machine code disassembly and IR translation library for Python using the
excellent `SLEIGH <https://ghidra.re/courses/languages/html/sleigh.html>`__ library from the `Ghidra <https://ghidra-sre.org/>`__ framework (version 12.0.1).
excellent `SLEIGH <https://ghidra.re/courses/languages/html/sleigh.html>`__ library from the `Ghidra <https://ghidra-sre.org/>`__ framework (version 12.0.2).

This library was created primarily for use with `angr <http://angr.io>`__, which provides analyses and symbolic
execution of p-code.
Expand Down
2 changes: 1 addition & 1 deletion pypcode/processors/AARCH64/data/languages/AARCH64base.sinc
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ is b_3031=0b10 & b_2129=0b111000101 & b_1015=0b110000 & Rn_GPR64xsp & aa_Wt & ls
# size == 11 64-bit variant

:ldapr aa_Xt, [Rn_GPR64xsp]
is b_3031=0b11 & b_2129=0b111000101 & b_1015=0b110000 & Rn_GPR64xsp & aa_Xt
is b_3031=0b11 & b_2129=0b111000101 & b_1015=0b110000 & Rn_GPR64xsp & aa_Xt & ls_data8
{
aa_Xt = tmp_ldXn;
}
Expand Down
7 changes: 4 additions & 3 deletions pypcode/processors/ARM/data/languages/ARMinstructions.sinc
Original file line number Diff line number Diff line change
Expand Up @@ -2868,9 +2868,10 @@ ArmPCRelImmed12: reloff is U23=0 & immed & rotate

:ldrexd^COND Rd,Rd2,[Rn] is $(AMODE) & ARMcond=1 & COND & c2027=0x1b & Rn & Rd & Rd2 & c0011=0xf9f
{
build COND;
Rd = *(Rn);
Rd2 = *(Rn + 4);
build COND;
local addr:4 = Rn;
Rd = *(addr);
Rd2 = *(addr + 4);
}

:ldrexh^COND Rd,[Rn] is $(AMODE) & ARMcond=1 & COND & c2027=0x1f & Rn & Rd & c0011=0xf9f
Expand Down
2 changes: 1 addition & 1 deletion pypcode/processors/PowerPC/data/languages/ppc_vle.sinc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ IMM16B: val is IMM_0_10_VLE & IMM_16_20_VLE [ val = (IMM_16_20_VLE << 11) |
:se_blrl is $(ISVLE) & OP15_VLE=2 & LK0_VLE=1 {
tmp:$(REGISTER_SIZE) = LR & ~1;
LR = inst_next;
return [tmp];
call [tmp];
}

:se_sc is $(ISVLE) & OP16_VLE=2 {
Expand Down
2 changes: 1 addition & 1 deletion scripts/sleigh_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
set -x

TAG=12.0.1
TAG=12.0.2
GHIDRA_SRC_DIR=ghidra_src_${TAG}
git clone --depth=1 -b Ghidra_${TAG}_build https://github.com/NationalSecurityAgency/ghidra.git ${GHIDRA_SRC_DIR}

Expand Down
Loading