Ghidra is a software reverse engineering (SRE) framework
GP-3071: Remove stale 'commitByDefault' documentation GP-3071: Fix test compilation GP-3071: Certify GP-3071: Put lifecycle stuff in Emulation, not Utility GP-3071: Fix tests GP-3071: Mock language for framework tests GP-3071: WIP: Move tests and sort out dependencies GP-3071: Actually, not Generic, but Emulation GP-3071: Move both emulators into new Emulation module GP-3071: WIP: Move some tests GP-3071: NICK: Remove import/ref from PcodeEmulator javadoc GP-3071: WIP: Move stuff GP-3071: WIP: Move AnnotationUtilities GP-3071: NICK: Remove an import and ref in javadoc GP-3071: Create SysteEmulation feature. Move stuff. GP-3071: WIP: Move stuff GP-3071: Create emulation module
Dan362408a290e4
diff --git a/Ghidra/Debug/Framework-TraceModeling/build.gradle b/Ghidra/Debug/Framework-TraceModeling/build.gradleindex 0b6f4871d2..7aec2d3efb 100644--- a/Ghidra/Debug/Framework-TraceModeling/build.gradle+++ b/Ghidra/Debug/Framework-TraceModeling/build.gradle@@ -24,6 +24,7 @@ eclipse.project.name = 'Debug Framework-TraceModeling'dependencies {api project(':Generic')api project(':SoftwareModeling')+ api project(':Emulation')api project(':ProposedUtils')api project(':Framework-Debugging')annotationProcessor project(':AnnotationValidator')diff --git a/Ghidra/Debug/TaintAnalysis/build.gradle b/Ghidra/Debug/TaintAnalysis/build.gradleindex 1c1fc7e82d..db93188943 100644--- a/Ghidra/Debug/TaintAnalysis/build.gradle+++ b/Ghidra/Debug/TaintAnalysis/build.gradle@@ -23,6 +23,7 @@ eclipse.project.name = 'Debug TaintAnalysis'dependencies {api project(':Debugger')+ api project(':SystemEmulation')// Oof. Apparently, this doesn't work transitively....testImplementation project(path: ':ProposedUtils', configuration: 'testArtifacts')@@ -30,4 +31,5 @@ dependencies {testImplementation project(path: ':Framework-Debugging', configuration: 'testArtifacts')testImplementation project(path: ':Framework-TraceModeling', configuration: 'testArtifacts')testImplementation project(path: ':Debugger', configuration: 'testArtifacts')+ testImplementation project(path: ':SystemEmulation', configuration: 'testArtifacts')}diff --git a/Ghidra/Features/Base/build.gradle b/Ghidra/Features/Base/build.gradleindex b649a3cc12..d4cdd500a9 100644--- a/Ghidra/Features/Base/build.gradle+++ b/Ghidra/Features/Base/build.gradle@@ -39,6 +39,7 @@ configurations {dependencies {api project(':SoftwareModeling')+ api project(':Emulation')api 'org.apache.felix:org.apache.felix.framework:7.0.3'api 'com.github.rotty3000:phidias:0.3.7'diff --git a/Ghidra/Features/SystemEmulation/Module.manifest b/Ghidra/Features/SystemEmulation/Module.manifestnew file mode 100644index 0000000000..e69de29bb2diff --git a/Ghidra/Features/SystemEmulation/build.gradle b/Ghidra/Features/SystemEmulation/build.gradlenew file mode 100644index 0000000000..79814fad40--- /dev/null+++ b/Ghidra/Features/SystemEmulation/build.gradle@@ -0,0 +1,29 @@+/* ###+ * IP: GHIDRA+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+apply from: "${rootProject.projectDir}/gradle/javaProject.gradle"+apply from: "${rootProject.projectDir}/gradle/jacocoProject.gradle"+apply from: "${rootProject.projectDir}/gradle/javaTestProject.gradle"+apply from: "${rootProject.projectDir}/gradle/distributableGhidraModule.gradle"++apply plugin: 'eclipse'+eclipse.project.name = 'Features SystemEmulation'++dependencies {+ api project(':Base')+ api project(':Debugger')+ api project(':Emulation')+ api project(':DB')+}diff --git a/Ghidra/Features/SystemEmulation/certification.manifest b/Ghidra/Features/SystemEmulation/certification.manifestnew file mode 100644index 0000000000..895ac4b698--- /dev/null+++ b/Ghidra/Features/SystemEmulation/certification.manifest@@ -0,0 +1,2 @@+##VERSION: 2.0+Module.manifest||GHIDRA||||END|diff --git a/Ghidra/Debug/Debugger/ghidra_scripts/DebuggerEmuExampleScript.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/DebuggerEmuExampleScript.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/DebuggerEmuExampleScript.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/DebuggerEmuExampleScript.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/DemoPcodeUseropLibrary.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/DemoPcodeUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/DemoPcodeUseropLibrary.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/DemoPcodeUseropLibrary.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/DemoSyscallLibrary.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/DemoSyscallLibrary.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/DemoSyscallLibrary.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/DemoSyscallLibrary.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/EmuDeskCheckScript.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/EmuDeskCheckScript.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/EmuDeskCheckScript.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/EmuDeskCheckScript.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/StandAloneEmuExampleScript.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneEmuExampleScript.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/StandAloneEmuExampleScript.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneEmuExampleScript.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/StandAloneStructuredSleighScript.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneStructuredSleighScript.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/StandAloneStructuredSleighScript.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneStructuredSleighScript.javadiff --git a/Ghidra/Debug/Debugger/ghidra_scripts/StandAloneSyscallEmuExampleScript.java b/Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneSyscallEmuExampleScript.javasimilarity index 100%rename from Ghidra/Debug/Debugger/ghidra_scripts/StandAloneSyscallEmuExampleScript.javarename to Ghidra/Features/SystemEmulation/ghidra_scripts/StandAloneSyscallEmuExampleScript.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/AbstractEmuLinuxSyscallUseropLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/AbstractEmuLinuxSyscallUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/AbstractEmuLinuxSyscallUseropLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/AbstractEmuLinuxSyscallUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/AnnotatedEmuSyscallUseropLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/AnnotatedEmuSyscallUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/AnnotatedEmuSyscallUseropLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/AnnotatedEmuSyscallUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/BytesEmuFileContents.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/BytesEmuFileContents.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/BytesEmuFileContents.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/BytesEmuFileContents.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuFileContents.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuFileContents.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuFileContents.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuFileContents.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuIOException.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuIOException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuIOException.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuIOException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuInvalidSystemCallException.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuInvalidSystemCallException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuInvalidSystemCallException.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuInvalidSystemCallException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuProcessExitedException.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuProcessExitedException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuProcessExitedException.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuProcessExitedException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuSyscallLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuSyscallLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuSyscallLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuSyscallLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuSystemException.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuSystemException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/EmuSystemException.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuSystemException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/PairedEmuFileContents.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/PairedEmuFileContents.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/PairedEmuFileContents.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/PairedEmuFileContents.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/UseropEmuSyscallDefinition.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/UseropEmuSyscallDefinition.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/sys/UseropEmuSyscallDefinition.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/UseropEmuSyscallDefinition.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFile.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFile.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFile.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFile.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFileSystem.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFileSystem.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFileSystem.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFileSystem.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixSyscallUseropLibrary.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixSyscallUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixSyscallUseropLibrary.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixSyscallUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractStreamEmuUnixFileHandle.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractStreamEmuUnixFileHandle.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/AbstractStreamEmuUnixFileHandle.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractStreamEmuUnixFileHandle.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/BytesEmuUnixFileSystem.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/BytesEmuUnixFileSystem.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/BytesEmuUnixFileSystem.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/BytesEmuUnixFileSystem.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/DefaultEmuUnixFileHandle.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/DefaultEmuUnixFileHandle.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/DefaultEmuUnixFileHandle.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/DefaultEmuUnixFileHandle.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixException.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixException.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFile.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFile.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFile.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFile.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileDescriptor.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileDescriptor.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileDescriptor.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileDescriptor.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileStat.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileStat.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileStat.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileStat.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileSystem.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileSystem.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileSystem.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixFileSystem.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixUser.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixUser.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/EmuUnixUser.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/EmuUnixUser.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/IOStreamEmuUnixFileHandle.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/IOStreamEmuUnixFileHandle.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/unix/IOStreamEmuUnixFileHandle.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/IOStreamEmuUnixFileHandle.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/x86/X86PcodeStateInitializer.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/x86/X86PcodeStateInitializer.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/x86/X86PcodeStateInitializer.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/x86/X86PcodeStateInitializer.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/AbstractStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/AbstractStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/AbstractStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/AbstractStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ArithBinExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ArithBinExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ArithBinExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ArithBinExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/AssignStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/AssignStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/AssignStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/AssignStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BinExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BinExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BinExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BinExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BlockStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BlockStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BlockStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BlockStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BreakStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BreakStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/BreakStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/BreakStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/CallExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/CallExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/CallExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/CallExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/CmpExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/CmpExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/CmpExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/CmpExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ConditionalStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ConditionalStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ConditionalStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ConditionalStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ContinueStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ContinueStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ContinueStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ContinueStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DeclStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DeclStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DeclStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DeclStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DefaultUseropDecl.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DefaultUseropDecl.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DefaultUseropDecl.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DefaultUseropDecl.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DefaultVar.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DefaultVar.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DefaultVar.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DefaultVar.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DerefExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DerefExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/DerefExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/DerefExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/Expr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/Expr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/Expr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/Expr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/FieldExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/FieldExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/FieldExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/FieldExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ForStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ForStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ForStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ForStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/GotoStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/GotoStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/GotoStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/GotoStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/IfStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/IfStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/IfStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/IfStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/IndexExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/IndexExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/IndexExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/IndexExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/InvExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/InvExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/InvExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/InvExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LValInternal.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LValInternal.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LValInternal.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LValInternal.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LangVar.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LangVar.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LangVar.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LangVar.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralFloatExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralFloatExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralFloatExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralFloatExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralLongExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralLongExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LiteralLongExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LiteralLongExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LocalVar.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LocalVar.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LocalVar.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LocalVar.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LoopStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LoopStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LoopStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LoopStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LoopTruncateStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LoopTruncateStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/LoopTruncateStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/LoopTruncateStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/NotExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/NotExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/NotExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/NotExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RValInternal.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RValInternal.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RValInternal.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RValInternal.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RawExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RawExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RawExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RawExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RawStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RawStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RawStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RawStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ResultStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ResultStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ResultStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ResultStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ReturnStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ReturnStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/ReturnStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/ReturnStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RoutineStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RoutineStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/RoutineStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/RoutineStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/StringTree.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/StringTree.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/StringTree.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/StringTree.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/StructuredSleigh.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/StructuredSleigh.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/StructuredSleigh.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/StructuredSleigh.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/UnExpr.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/UnExpr.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/UnExpr.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/UnExpr.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/VoidExprStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/VoidExprStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/VoidExprStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/VoidExprStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/WhileStmt.java b/Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/WhileStmt.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/struct/WhileStmt.javarename to Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/WhileStmt.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibraryTest.java b/Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibraryTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibraryTest.javarename to Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/linux/EmuLinuxAmd64SyscallUseropLibraryTest.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibraryTest.java b/Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibraryTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibraryTest.javarename to Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/linux/EmuLinuxX86SyscallUseropLibraryTest.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/sys/EmuAmd64SyscallUseropLibraryTest.java b/Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/sys/EmuAmd64SyscallUseropLibraryTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/sys/EmuAmd64SyscallUseropLibraryTest.javarename to Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/sys/EmuAmd64SyscallUseropLibraryTest.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/sys/SyscallTestHelper.java b/Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/sys/SyscallTestHelper.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/sys/SyscallTestHelper.javarename to Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/emu/sys/SyscallTestHelper.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/struct/sub/StructuredSleighTest.java b/Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/struct/sub/StructuredSleighTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/struct/sub/StructuredSleighTest.javarename to Ghidra/Features/SystemEmulation/src/test/java/ghidra/pcode/struct/sub/StructuredSleighTest.javadiff --git a/Ghidra/Framework/Emulation/Module.manifest b/Ghidra/Framework/Emulation/Module.manifestnew file mode 100644index 0000000000..e69de29bb2diff --git a/Ghidra/Framework/Emulation/build.gradle b/Ghidra/Framework/Emulation/build.gradlenew file mode 100644index 0000000000..0a638d0585--- /dev/null+++ b/Ghidra/Framework/Emulation/build.gradle@@ -0,0 +1,28 @@+/* ###+ * IP: GHIDRA+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+apply from: "${rootProject.projectDir}/gradle/javaProject.gradle"+apply from: "${rootProject.projectDir}/gradle/jacocoProject.gradle"+apply from: "${rootProject.projectDir}/gradle/javaTestProject.gradle"+apply from: "${rootProject.projectDir}/gradle/distributableGhidraModule.gradle"++apply plugin: 'eclipse'+eclipse.project.name = 'Framework Emulation'++dependencies {+ api project(':SoftwareModeling')+ api project(':Generic')+ api project(':Utility')+}diff --git a/Ghidra/Framework/Emulation/certification.manifest b/Ghidra/Framework/Emulation/certification.manifestnew file mode 100644index 0000000000..90dcde061a--- /dev/null+++ b/Ghidra/Framework/Emulation/certification.manifest@@ -0,0 +1,6 @@+##VERSION: 2.0+Module.manifest||GHIDRA||||END|+src/test/resources/mock.cspec||GHIDRA||||END|+src/test/resources/mock.ldefs||GHIDRA||||END|+src/test/resources/mock.pspec||GHIDRA||||END|+src/test/resources/mock.slaspec||GHIDRA||||END|diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/generic/RangeMapSetter.java b/Ghidra/Framework/Emulation/src/main/java/generic/RangeMapSetter.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/generic/RangeMapSetter.javarename to Ghidra/Framework/Emulation/src/main/java/generic/RangeMapSetter.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/generic/Span.java b/Ghidra/Framework/Emulation/src/main/java/generic/Span.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/generic/Span.javarename to Ghidra/Framework/Emulation/src/main/java/generic/Span.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/generic/ULongSpan.java b/Ghidra/Framework/Emulation/src/main/java/generic/ULongSpan.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/generic/ULongSpan.javarename to Ghidra/Framework/Emulation/src/main/java/generic/ULongSpan.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/generic/Unique.java b/Ghidra/Framework/Emulation/src/main/java/generic/Unique.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/generic/Unique.javarename to Ghidra/Framework/Emulation/src/main/java/generic/Unique.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/Emulator.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/Emulator.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/Emulator.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/Emulator.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/EmulatorConfiguration.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorConfiguration.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/EmulatorConfiguration.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorConfiguration.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/EmulatorHelper.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorHelper.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/EmulatorHelper.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorHelper.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/FilteredMemoryState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/FilteredMemoryState.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/FilteredMemoryState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/FilteredMemoryState.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/MemoryAccessFilter.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/MemoryAccessFilter.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/MemoryAccessFilter.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/MemoryAccessFilter.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/CompositeLoadImage.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/CompositeLoadImage.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/CompositeLoadImage.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/CompositeLoadImage.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/EmulatorLoadData.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/EmulatorLoadData.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/EmulatorLoadData.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/EmulatorLoadData.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/MemoryImage.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/MemoryImage.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/MemoryImage.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/MemoryImage.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/MemoryLoadImage.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/MemoryLoadImage.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/MemoryLoadImage.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/MemoryLoadImage.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramLoadImage.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramLoadImage.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramLoadImage.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramLoadImage.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramMappedLoadImage.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramMappedLoadImage.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramMappedLoadImage.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramMappedLoadImage.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramMappedMemory.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramMappedMemory.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/memory/ProgramMappedMemory.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/memory/ProgramMappedMemory.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/DumpMiscState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/DumpMiscState.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/DumpMiscState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/DumpMiscState.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/FilteredMemoryPageOverlay.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/FilteredMemoryPageOverlay.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/FilteredMemoryPageOverlay.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/FilteredMemoryPageOverlay.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/FilteredRegisterBank.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/FilteredRegisterBank.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/FilteredRegisterBank.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/FilteredRegisterBank.javadiff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/RegisterState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/RegisterState.javasimilarity index 100%rename from Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/emulator/state/RegisterState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/state/RegisterState.javadiff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/AbstractAppender.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/AbstractAppender.javasimilarity index 100%rename from Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/AbstractAppender.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/AbstractAppender.javadiff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/AbstractPcodeFormatter.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/AbstractPcodeFormatter.javasimilarity index 100%rename from Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/AbstractPcodeFormatter.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/AbstractPcodeFormatter.javadiff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/Appender.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/Appender.javasimilarity index 100%rename from Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/Appender.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/Appender.javadiff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/PcodeFormatter.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/PcodeFormatter.javasimilarity index 100%rename from Ghidra/Features/Base/src/main/java/ghidra/app/util/pcode/PcodeFormatter.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/app/util/pcode/PcodeFormatter.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/generic/util/datastruct/SemisparseByteArray.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/generic/util/datastruct/SemisparseByteArray.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/generic/util/datastruct/SemisparseByteArray.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/generic/util/datastruct/SemisparseByteArray.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Experimental.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Experimental.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Experimental.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Experimental.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Internal.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Internal.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Internal.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Internal.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Transitional.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Transitional.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Transitional.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Transitional.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Unfinished.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Unfinished.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/lifecycle/Unfinished.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/lifecycle/Unfinished.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/AbstractPcodeMachine.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/AbstractPcodeMachine.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/AbstractPcodeMachine.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/AbstractPcodeMachine.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/BytesPcodeThread.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/BytesPcodeThread.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/BytesPcodeThread.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/BytesPcodeThread.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/DefaultPcodeThread.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/DefaultPcodeThread.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/DefaultPcodeThread.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/DefaultPcodeThread.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/InstructionDecoder.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/InstructionDecoder.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/InstructionDecoder.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/InstructionDecoder.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/ModifiedPcodeThread.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/ModifiedPcodeThread.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/ModifiedPcodeThread.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/ModifiedPcodeThread.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeEmulator.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeEmulator.javasimilarity index 97%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeEmulator.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeEmulator.javaindex b0011f5493..34069f1c90 100644--- a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeEmulator.java+++ b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeEmulator.java@@ -18,7 +18,6 @@ package ghidra.pcode.emu;import java.util.List;import ghidra.pcode.emu.auxiliary.AuxPcodeEmulator;-import ghidra.pcode.emu.sys.EmuSyscallLibrary;import ghidra.pcode.exec.*;import ghidra.program.model.address.Address;import ghidra.program.model.lang.Language;@@ -96,8 +95,8 @@ import ghidra.program.model.lang.Language;* The default userop library is empty. For many use cases, it will be necessary to override* {@link #createUseropLibrary()} if only to implement the language-defined userops. If needed,* simulation of the host operating system is typically achieved by implementing the {@code syscall}- * userop. The fidelity of that simulation depends on the use case. See {@link EmuSyscallLibrary}- * and its implementations to see what simulators are available "out of the box."+ * userop. The fidelity of that simulation depends on the use case. See the SystemEmulation module+ * to see what simulators are available "out of the box."** <p>* Alternatively, if the target program never invokes system calls directly, but rather viadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeMachine.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeMachine.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeMachine.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeMachine.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeStateInitializer.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeStateInitializer.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeStateInitializer.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeStateInitializer.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeThread.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeThread.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/PcodeThread.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/PcodeThread.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/SleighInstructionDecoder.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/SleighInstructionDecoder.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/SleighInstructionDecoder.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/SleighInstructionDecoder.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/SparseAddressRangeMap.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/SparseAddressRangeMap.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/SparseAddressRangeMap.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/SparseAddressRangeMap.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/ThreadPcodeExecutorState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/ThreadPcodeExecutorState.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/ThreadPcodeExecutorState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/ThreadPcodeExecutorState.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxEmulatorPartsFactory.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxEmulatorPartsFactory.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxEmulatorPartsFactory.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxEmulatorPartsFactory.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeEmulator.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeEmulator.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeEmulator.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeEmulator.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeThread.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeThread.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeThread.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/auxiliary/AuxPcodeThread.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AbstractBytesPcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AbstractBytesPcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AbstractBytesPcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AbstractBytesPcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AbstractLongOffsetPcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AbstractLongOffsetPcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AbstractLongOffsetPcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AbstractLongOffsetPcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AccessPcodeExecutionException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AccessPcodeExecutionException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AccessPcodeExecutionException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AccessPcodeExecutionException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AddressesReadPcodeArithmetic.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AddressesReadPcodeArithmetic.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AddressesReadPcodeArithmetic.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AddressesReadPcodeArithmetic.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.javasimilarity index 99%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.javaindex 944be75ddd..dd3fd1cf8e 100644--- a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.java+++ b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibrary.java@@ -26,7 +26,6 @@ import java.util.stream.Stream;import org.apache.commons.lang3.reflect.TypeUtils;-import ghidra.pcode.emu.linux.EmuLinuxAmd64SyscallUseropLibrary;import ghidra.pcode.exec.PcodeExecutorStatePiece.Reason;import ghidra.program.model.pcode.Varnode;import utilities.util.AnnotationUtilities;@@ -35,8 +34,7 @@ import utilities.util.AnnotationUtilities;* A userop library wherein Java methods are exported via a special annotation** <p>- * See {@code StandAloneEmuExampleScript} for an example of implementing a userop library. A more- * complex example is {@link EmuLinuxAmd64SyscallUseropLibrary}.+ * See {@code StandAloneEmuExampleScript} for an example of implementing a userop library.** @param <T> the type of data processed by the library*/diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeArithmetic.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeArithmetic.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeArithmetic.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeArithmetic.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorState.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorState.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStateSpace.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStateSpace.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStateSpace.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/BytesPcodeExecutorStateSpace.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ComposedPcodeUseropLibrary.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ComposedPcodeUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ComposedPcodeUseropLibrary.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ComposedPcodeUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ConcretionError.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ConcretionError.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ConcretionError.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ConcretionError.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/DefaultPcodeExecutorState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/DefaultPcodeExecutorState.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/DefaultPcodeExecutorState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/DefaultPcodeExecutorState.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/InjectionErrorPcodeExecutionException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/InjectionErrorPcodeExecutionException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/InjectionErrorPcodeExecutionException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/InjectionErrorPcodeExecutionException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/InterruptPcodeExecutionException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/InterruptPcodeExecutionException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/InterruptPcodeExecutionException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/InterruptPcodeExecutionException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/LocationPcodeArithmetic.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/LocationPcodeArithmetic.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/LocationPcodeArithmetic.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/LocationPcodeArithmetic.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/LocationPcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/LocationPcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/LocationPcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/LocationPcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeArithmetic.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeArithmetic.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeArithmetic.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeArithmetic.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorState.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorState.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PairedPcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeArithmetic.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeArithmetic.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeArithmetic.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeArithmetic.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutionException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutionException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutionException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutionException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutor.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutor.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutor.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutor.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutorState.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutorState.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutorState.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutorState.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutorStatePiece.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutorStatePiece.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExecutorStatePiece.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExecutorStatePiece.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExpression.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExpression.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeExpression.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeExpression.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeFrame.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeFrame.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeFrame.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeFrame.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeProgram.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeProgram.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeProgram.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeProgram.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeUseropLibrary.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeUseropLibrary.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/PcodeUseropLibrary.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeUseropLibrary.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighLinkException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighLinkException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighLinkException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighLinkException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighPcodeUseropDefinition.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighPcodeUseropDefinition.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighPcodeUseropDefinition.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighPcodeUseropDefinition.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighUtils.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SleighUtils.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SuspendedPcodeExecutionException.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SuspendedPcodeExecutionException.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/SuspendedPcodeExecutionException.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SuspendedPcodeExecutionException.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ValueLocation.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/pcode/exec/ValueLocation.javarename to Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/utilities/util/AnnotationUtilities.java b/Ghidra/Framework/Emulation/src/main/java/utilities/util/AnnotationUtilities.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/utilities/util/AnnotationUtilities.javarename to Ghidra/Framework/Emulation/src/main/java/utilities/util/AnnotationUtilities.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/generic/ULongSpanTest.java b/Ghidra/Framework/Emulation/src/test/java/generic/ULongSpanTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/generic/ULongSpanTest.javarename to Ghidra/Framework/Emulation/src/test/java/generic/ULongSpanTest.javadiff --git a/Ghidra/Framework/Emulation/src/test/java/ghidra/app/plugin/processors/sleigh/SleighLanguageHelper.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/app/plugin/processors/sleigh/SleighLanguageHelper.javanew file mode 100644index 0000000000..3945a684bb--- /dev/null+++ b/Ghidra/Framework/Emulation/src/test/java/ghidra/app/plugin/processors/sleigh/SleighLanguageHelper.java@@ -0,0 +1,63 @@+/* ###+ * IP: GHIDRA+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+package ghidra.app.plugin.processors.sleigh;++import java.io.IOException;+import java.util.*;++import org.xml.sax.SAXException;++import generic.jar.ResourceFile;+import ghidra.program.model.lang.*;+import resources.ResourceManager;++public class SleighLanguageHelper {+ public static SleighLanguage getMockBE64Language()+ throws UnknownInstructionException, SAXException, IOException {++ ResourceFile cSpecFile =+ new ResourceFile(ResourceManager.getResource("mock.cspec").getPath());+ CompilerSpecDescription cSpecDesc =+ new SleighCompilerSpecDescription(new CompilerSpecID("default"), "default", cSpecFile);++ ResourceFile lDefsFile =+ new ResourceFile(ResourceManager.getResource("mock.ldefs").getPath());+ ResourceFile pSpecFile =+ new ResourceFile(ResourceManager.getResource("mock.pspec").getPath());+ ResourceFile slaFile =+ new ResourceFile(ResourceManager.getResource("mock.sla").getPath());+ SleighLanguageDescription langDesc = new SleighLanguageDescription(+ new LanguageID("Mock:BE:64:default"),+ "Mock language (64-bit BE)",+ Processor.findOrPossiblyCreateProcessor("Mock"),+ Endian.BIG, // endian+ Endian.BIG, // instructionEndian+ 64,+ "default", // variant+ 0, // major version+ 0, // minor version+ false, // deprecated+ new HashMap<>(), // truncatedSpaceMap+ new ArrayList<>(List.of(cSpecDesc)),+ new HashMap<>() // externalNames+ );+ langDesc.setDefsFile(lDefsFile);+ langDesc.setSpecFile(pSpecFile);+ langDesc.setSlaFile(slaFile);++ return new SleighLanguage(langDesc);+ }+}diff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/generic/util/datastruct/SemisparseByteArrayTest.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/generic/util/datastruct/SemisparseByteArrayTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/generic/util/datastruct/SemisparseByteArrayTest.javarename to Ghidra/Framework/Emulation/src/test/java/ghidra/generic/util/datastruct/SemisparseByteArrayTest.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/SparseAddressRangeMapTest.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/emu/SparseAddressRangeMapTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/emu/SparseAddressRangeMapTest.javarename to Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/emu/SparseAddressRangeMapTest.javadiff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.javasimilarity index 93%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.javarename to Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.javaindex 690c60e698..230fbeb7c0 100644--- a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.java+++ b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.java@@ -18,21 +18,24 @@ package ghidra.pcode.exec;import static org.junit.Assert.assertEquals;import static org.junit.Assert.assertTrue;+import java.io.*;import java.lang.invoke.MethodHandles;import java.lang.invoke.MethodHandles.Lookup;+import org.junit.Before;import org.junit.Test;-import ghidra.app.plugin.processors.sleigh.SleighException;-import ghidra.app.plugin.processors.sleigh.SleighLanguage;+import generic.test.AbstractGTest;+import ghidra.GhidraTestApplicationLayout;+import ghidra.app.plugin.processors.sleigh.*;+import ghidra.framework.Application;+import ghidra.framework.ApplicationConfiguration;import ghidra.pcode.exec.PcodeExecutorStatePiece.Reason;import ghidra.pcode.utils.Utils;-import ghidra.program.model.lang.LanguageID;import ghidra.program.model.lang.Register;import ghidra.program.model.pcode.Varnode;-import ghidra.test.AbstractGhidraHeadlessIntegrationTest;-public class AnnotatedPcodeUseropLibraryTest extends AbstractGhidraHeadlessIntegrationTest {+public class AnnotatedPcodeUseropLibraryTest extends AbstractGTest {private class TestUseropLibrary extends AnnotatedPcodeUseropLibrary<byte[]> {@Overrideprotected Lookup getMethodLookup() {@@ -40,13 +43,20 @@ public class AnnotatedPcodeUseropLibraryTest extends AbstractGhidraHeadlessInteg}}+ @Before+ public void setUp() throws IOException {+ if (!Application.isInitialized()) {+ Application.initializeApplication(+ new GhidraTestApplicationLayout(new File(getTestDirectoryPath())),+ new ApplicationConfiguration());+ }+ }+protected PcodeExecutor<byte[]> createBytesExecutor() throws Exception {- return createBytesExecutor("Toy:BE:64:default");+ return createBytesExecutor(SleighLanguageHelper.getMockBE64Language());}- protected PcodeExecutor<byte[]> createBytesExecutor(String languageId) throws Exception {- SleighLanguage language =- (SleighLanguage) getLanguageService().getLanguage(new LanguageID(languageId));+ protected PcodeExecutor<byte[]> createBytesExecutor(SleighLanguage language) throws Exception {PcodeExecutorState<byte[]> state = new BytesPcodeExecutorState(language);PcodeArithmetic<byte[]> arithmetic = BytesPcodeArithmetic.forLanguage(language);return new PcodeExecutor<>(language, arithmetic, state, Reason.EXECUTE);@@ -54,8 +64,9 @@ public class AnnotatedPcodeUseropLibraryTest extends AbstractGhidraHeadlessIntegprotected <T> void executeSleigh(PcodeExecutor<T> executor, PcodeUseropLibrary<T> library,String source) {- PcodeProgram program = SleighProgramCompiler.compileProgram(executor.getLanguage(), "test",- source, library);+ PcodeProgram program =+ SleighProgramCompiler.compileProgram(executor.getLanguage(), getName(),+ source, library);executor.execute(program, library);}diff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/PcodeFrameTest.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/PcodeFrameTest.javasimilarity index 83%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/PcodeFrameTest.javarename to Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/PcodeFrameTest.javaindex c54d1dd2b5..ec8cb09f69 100644--- a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/PcodeFrameTest.java+++ b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/PcodeFrameTest.java@@ -17,14 +17,19 @@ package ghidra.pcode.exec;import static org.junit.Assert.assertEquals;+import java.io.File;+import org.junit.Before;import org.junit.Test;+import generic.test.AbstractGTest;+import ghidra.GhidraTestApplicationLayout;import ghidra.app.plugin.processors.sleigh.SleighLanguage;-import ghidra.program.model.lang.LanguageID;-import ghidra.test.AbstractGhidraHeadlessIntegrationTest;+import ghidra.app.plugin.processors.sleigh.SleighLanguageHelper;+import ghidra.framework.Application;+import ghidra.framework.ApplicationConfiguration;-public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {+public class PcodeFrameTest extends AbstractGTest {static final String SAMPLE_ADD = """r0 = r0 + r1;""";@@ -65,12 +70,16 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {@Beforepublic void setUp() throws Exception {- language =- (SleighLanguage) getLanguageService().getLanguage(new LanguageID("Toy:BE:64:default"));+ if (!Application.isInitialized()) {+ Application.initializeApplication(+ new GhidraTestApplicationLayout(new File(getTestDirectoryPath())),+ new ApplicationConfiguration());+ }+ language = SleighLanguageHelper.getMockBE64Language();}private PcodeProgram compile(String sample) {- return SleighProgramCompiler.compileProgram(language, getName(), sample, library);+ return SleighProgramCompiler.compileProgram(language, "test", sample, library);}private PcodeFrame frame(String sample) {@@ -93,8 +102,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {PcodeProgram program = compile(SAMPLE_ADD2);assertEquals("""<PcodeProgram:- $U2000:8 = INT_ADD r0, r1- r0 = INT_ADD $U2000:8, r2+ $U200:8 = INT_ADD r0, r1+ r0 = INT_ADD $U200:8, r2>""",program.toString());}@@ -104,8 +113,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {PcodeProgram program = compile(SAMPLE_IF);assertEquals("""<PcodeProgram:- $U2000:1 = INT_EQUAL r0, r1- CBRANCH <0>, $U2000:1+ $U200:1 = INT_EQUAL r0, r1+ CBRANCH <0>, $U200:1r2 = INT_ADD r2, 1:8<0>>""",@@ -119,8 +128,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {<PcodeProgram:<0>r0 = INT_ADD r0, 1:8- $U2080:1 = INT_EQUAL r0, r1- CBRANCH <0>, $U2080:1+ $U280:1 = INT_EQUAL r0, r1+ CBRANCH <0>, $U280:1>""",program.toString());}@@ -178,8 +187,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {PcodeFrame frame = frame(SAMPLE_IF);assertEquals("""<p-code frame: index=0 {- -> $U2000:1 = INT_EQUAL r0, r1- CBRANCH <0>, $U2000:1+ -> $U200:1 = INT_EQUAL r0, r1+ CBRANCH <0>, $U200:1r2 = INT_ADD r2, 1:8<0>}>""",@@ -190,8 +199,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {frame.advance();assertEquals("""<p-code frame: index=3 {- $U2000:1 = INT_EQUAL r0, r1- CBRANCH <0>, $U2000:1+ $U200:1 = INT_EQUAL r0, r1+ CBRANCH <0>, $U200:1r2 = INT_ADD r2, 1:8<0>*> fall-through@@ -206,8 +215,8 @@ public class PcodeFrameTest extends AbstractGhidraHeadlessIntegrationTest {<p-code frame: index=0 {<0>-> r0 = INT_ADD r0, 1:8- $U2080:1 = INT_EQUAL r0, r1- CBRANCH <0>, $U2080:1+ $U280:1 = INT_EQUAL r0, r1+ CBRANCH <0>, $U280:1}>""",frame.toString());}diff --git a/Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/SleighUtilsTest.java b/Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/SleighUtilsTest.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/SleighUtilsTest.javarename to Ghidra/Framework/Emulation/src/test/java/ghidra/pcode/exec/SleighUtilsTest.javadiff --git a/Ghidra/Framework/Emulation/src/test/resources/mock.cspec b/Ghidra/Framework/Emulation/src/test/resources/mock.cspecnew file mode 100644index 0000000000..e69de29bb2diff --git a/Ghidra/Framework/Emulation/src/test/resources/mock.ldefs b/Ghidra/Framework/Emulation/src/test/resources/mock.ldefsnew file mode 100644index 0000000000..e69de29bb2diff --git a/Ghidra/Framework/Emulation/src/test/resources/mock.pspec b/Ghidra/Framework/Emulation/src/test/resources/mock.pspecnew file mode 100644index 0000000000..be3ce4f3a4--- /dev/null+++ b/Ghidra/Framework/Emulation/src/test/resources/mock.pspec@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="UTF-8"?>++<processor_spec>+</processor_spec>+diff --git a/Ghidra/Framework/Emulation/src/test/resources/mock.slaspec b/Ghidra/Framework/Emulation/src/test/resources/mock.slaspecnew file mode 100644index 0000000000..5596dc9500--- /dev/null+++ b/Ghidra/Framework/Emulation/src/test/resources/mock.slaspec@@ -0,0 +1,37 @@+@define ENDIAN "big"++@define RAMSIZE "8"++define endian = $(ENDIAN);++define alignment = 1;++define space ram type=ram_space size=8 default;++define space register type=register_space size=4;++# # # # # # # # # # # # # # # # # # # # # # # # # # # #+# AT LEAST ONE REGISTER, AND STACK POINTER ARE REQUIRED+# # # # # # # # # # # # # # # # # # # # # # # # # # # #++define register offset=0x0 size=8 [ sp r0 r1 r2 r3 r4 r5 r6 r7 ];++# Define context bits+define register offset=0x100 size=4 contextreg;++define context contextreg+ test=(0,0)+;+++define pcodeop pcodeop_one;+define pcodeop pcodeop_two;+define pcodeop pcodeop_three;++# # # # # # # # # # # # # # # # # # # # # # # # # # # #+# AT LEAST ONE INSTRUCTION IS REQUIRED+# # # # # # # # # # # # # # # # # # # # # # # # # # # #++:nop is test=1 unimpl++# # # # # # # # # # # # # # # # # # # # # # # # # # # #diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/program/model/mem/MemBufferAdapter.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBufferAdapter.javasimilarity index 100%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/program/model/mem/MemBufferAdapter.javarename to Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBufferAdapter.javadiff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/UndoableTransaction.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/util/database/UndoableTransaction.javasimilarity index 98%rename from Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/UndoableTransaction.javarename to Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/util/database/UndoableTransaction.javaindex 6c43edc230..92bd08a97e 100644--- a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/UndoableTransaction.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/util/database/UndoableTransaction.java@@ -48,7 +48,7 @@ import ghidra.util.Msg;* Can be expressed using an undoable transaction instead:** <pre>- * try (UndoableTransaction txid = UndoableTransaction.start(program, "Do a thing", true)) {+ * try (UndoableTransaction txid = UndoableTransaction.start(program, "Do a thing")) {* // ... Do that thing* }* </pre>@@ -88,7 +88,6 @@ public interface UndoableTransaction extends AutoCloseable {* @param domainObject the domain object* @param description a description of the change* @param listener a listener for aborted transactions- * @param commitByDefault true to commit at the end of the block* @return the transaction handle*/public static UndoableTransaction start(UndoableDomainObject domainObject, String description,@@ -102,7 +101,6 @@ public interface UndoableTransaction extends AutoCloseable {** @param dataTypeManager the data type manager* @param description a description of the change- * @param commitByDefault true to commit at the end of the block* @return the transaction handle*/public static UndoableTransaction start(DataTypeManager dataTypeManager, String description) {