mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
579d7114db
5 changed files with 33 additions and 23 deletions
|
@ -291,12 +291,12 @@ public class TracePcodeEmulatorTest extends AbstractGhidraHeadlessIntegrationTes
|
|||
}
|
||||
|
||||
/**
|
||||
* This tests an language without a contextreg
|
||||
* This tests a language without a real contextreg
|
||||
*/
|
||||
@Test
|
||||
public void testIMM() throws Throwable {
|
||||
try (ToyDBTraceBuilder tb = new ToyDBTraceBuilder("Test", "Toy:BE:64:default")) {
|
||||
assertNull(tb.language.getContextBaseRegister());
|
||||
assertEquals(Register.DEFAULT_CONTEXT, tb.language.getContextBaseRegister());
|
||||
|
||||
TraceThread thread = initTrace(tb,
|
||||
List.of(
|
||||
|
|
|
@ -1195,8 +1195,8 @@ public class DBTraceCodeUnitTest extends AbstractGhidraHeadlessIntegrationTest
|
|||
i4004 = b.addInstruction(0, b.addr(0x4004), b.language, b.buf(0xf4, 0));
|
||||
}
|
||||
|
||||
// TODO: Test with context
|
||||
assertNull(i4004.getBaseContextRegister());
|
||||
// TODO: Test with non-default context
|
||||
assertEquals(Register.DEFAULT_CONTEXT, i4004.getBaseContextRegister());
|
||||
|
||||
assertEquals(b.language.getRegisters(), i4004.getRegisters());
|
||||
assertEquals(r4, i4004.getRegister("r4"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue