Skip to content

jtang613/ghidra_processor_nios_II

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Altera Nios II for Ghidra

This repo contains an implementation of the Altera Nios II soft-processor for Ghidra.

Installation

  • Copy the extension ZIP file to your local Ghidra/extensions/Ghidra
  • Start Ghidra
  • File -> Install Extension
  • Select Nios2Processor
  • Restart Ghidra

Build

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.

Resources used

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

Changelog

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