mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GT-2909_emteere fixing pcodeunit tests from removal of register
This commit is contained in:
parent
2a8a3d6ba6
commit
1f8ced9b8d
6 changed files with 42 additions and 30 deletions
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,13 +37,14 @@ 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue