NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
51.36k stars 5.85k forks source link

Z180 can't set context flag assume8bitIOSpace #2835

Closed depili closed 3 years ago

depili commented 3 years ago

Describe the bug This seems similar to #2488

Trying to set the context variable that controls the IO space addressing on Z180 project fails with:

Context register change conflicts with one or more instructions
---------------------------------------------------
Build Date: 2020-Dec-29 1701 EST
Ghidra Version: 9.2.2
Java Home: /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home
JVM Version: AdoptOpenJDK 15
OS: Mac OS X 10.15.7 x86_64
Workstation: localhost

To Reproduce Steps to reproduce the behavior:

  1. Open a Z180 program in ghidra
  2. Open the set register values dialog
  3. Select "assume8bitIOSpace" or "contextReg" as the register
  4. Set it to value 1
  5. Get the error above

Expected behavior Expected the context register to get set and decompilation to clear up

Environment (please complete the following information):

depili commented 3 years ago

github had a hickup, and this is a duplicate of #2834 closing