Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Emulator/Peripherals/Peripherals/CPU/TranslationCPU.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,18 @@ public bool RequestTranslationBlockRestart(bool quiet = false)
return pauseGuard.RequestTranslationBlockRestart(quiet);
}

/// <summary>
/// Requests an abort of the currently executing instruction inside the
/// translation block. When <paramref name="excludeLastInstruction"/> is
/// true the CPU state is restored to the start of the faulting
/// instruction (PC points to it), modelling a synchronous precise fault
/// that can be retried.
/// </summary>
public void RequestTranslationBlockInterrupt(bool excludeLastInstruction)
{
TlibRequestTranslationBlockInterrupt(excludeLastInstruction ? 1 : 0);
}

public uint AssembleBlock(ulong addr, string instructions, string triple = null, bool alternateDialect = false)
{
if(Assembler == null)
Expand Down