mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 09:21:35 +08:00
GT-2909_emteere fixing pcodeunit tests from removal of register
This commit is contained in:
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_31_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_31_GCC_O0";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_31_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_31_GCC_O0_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_31_GCC_O0_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_31_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_31_GCC_O3";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_31_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_31_GCC_O3_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_31_GCC_O3_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_51_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_51_GCC_O0";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_51_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_51_GCC_O0_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_51_GCC_O0_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_51_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_51_GCC_O3";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_51_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_51_GCC_O3_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_51_GCC_O3_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_6_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_6_GCC_O0";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_6_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_6_GCC_O0_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_6_GCC_O0_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
+7
-5
@@ -37,15 +37,16 @@ public class AVR8_6_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
return "AVR8_6_GCC_O3";
|
||||
}
|
||||
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program) throws Exception {
|
||||
@Override
|
||||
protected void initializeState(EmulatorTestRunner testRunner, Program program)
|
||||
throws Exception {
|
||||
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||
testRunner.setRegister("SP", 0x0);
|
||||
testRunner.setRegister("R1", 0x0);
|
||||
testRunner.setRegister("Y", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
testRunner.setRegister("SREG", 0x0);
|
||||
testRunner.setRegister("W", 0x0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setAnalysisOptions(Options analysisOptions) {
|
||||
super.setAnalysisOptions(analysisOptions);
|
||||
@@ -54,6 +55,7 @@ public class AVR8_6_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_6_GCC_O3_EmulatorTest.class);
|
||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||
AVR8_6_GCC_O3_EmulatorTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user