This repo contains an implementation of the Altera Nios II soft-processor for Ghidra.
- Copy the extension ZIP file to your local Ghidra/extensions/Ghidra
- Start Ghidra
- File -> Install Extension
- Select Nios2Processor
- Restart Ghidra
git clone [this repo]
cd ghidra_processor_nios_ii
export GHIDRA_INSTALL_DIR=[your local Ghidra install]
gradle buildExtension
- The build artifact will be dropped into the ./dist folder.
- Nios II Processor Reference Guide
- Implementing a New CPU Architecture for Ghidra
- Specifying Representations of Machine Instructions
The documentation for ldefs
, cspec
and pspec
files is kind of hidden. Inside the Ghidra repository, it is located at REPO/Ghidra/Features/Decompiler/src/main/doc
and can be compiled to html with the following command:
xsltproc cspec_html.xsl cspec.xml > cspec.html
Original source: https://gitlab.com/CycleOfTheAbsurd/ghidra_processor_nios_II
- Added fixes for current Ghidra.
- Added build.gradle
- Fixed call offsets
- Added mov and nop pseudo-ops
- Updated calling convention