mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
GT-2909_emteere fixing pcodeunit tests from removal of register
This commit is contained in:
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_31_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_31_GCC_O0";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_31_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_31_GCC_O0_EmulatorTest.class);
|
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||||
|
AVR8_31_GCC_O0_EmulatorTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_31_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_31_GCC_O3";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_31_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_31_GCC_O3_EmulatorTest.class);
|
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||||
|
AVR8_31_GCC_O3_EmulatorTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_51_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_51_GCC_O0";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_51_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_51_GCC_O0_EmulatorTest.class);
|
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||||
|
AVR8_51_GCC_O0_EmulatorTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_51_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_51_GCC_O3";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_51_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_51_GCC_O3_EmulatorTest.class);
|
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||||
|
AVR8_51_GCC_O3_EmulatorTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_6_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_6_GCC_O0";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_6_GCC_O0_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(AVR8_6_GCC_O0_EmulatorTest.class);
|
return ProcessorEmulatorTestAdapter.buildEmulatorTestSuite(
|
||||||
|
AVR8_6_GCC_O0_EmulatorTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -37,13 +37,14 @@ public class AVR8_6_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
return "AVR8_6_GCC_O3";
|
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.
|
// These eliminate "uninitialized register" errors. Not strictly needed, but helps find actual problems.
|
||||||
testRunner.setRegister("SP", 0x0);
|
testRunner.setRegister("SP", 0x0);
|
||||||
testRunner.setRegister("R1", 0x0);
|
testRunner.setRegister("R1", 0x0);
|
||||||
testRunner.setRegister("Y", 0x0);
|
testRunner.setRegister("Y", 0x0);
|
||||||
testRunner.setRegister("W", 0x0);
|
testRunner.setRegister("W", 0x0);
|
||||||
testRunner.setRegister("SREG", 0x0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,6 +55,7 @@ public class AVR8_6_GCC_O3_EmulatorTest extends ProcessorEmulatorTestAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
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