mirror of
https://github.com/par274/sharpemu.git
synced 2026-08-08 18:55:41 +08:00
[emulator] Improve emulator performance by optimizing memory access and reducing unnecessary overhead in kernel and CPU execution paths (#131)
This commit is contained in:
@@ -3480,6 +3480,18 @@ public static class KernelMemoryCompatExports
|
||||
return true;
|
||||
}
|
||||
|
||||
internal static bool TryFormatStringFromVaList(CpuContext ctx, string format, ulong vaListAddress, out string rendered)
|
||||
{
|
||||
if (!TryCreateVaListCursor(ctx, vaListAddress, out var vaCursor))
|
||||
{
|
||||
rendered = format;
|
||||
return false;
|
||||
}
|
||||
|
||||
rendered = FormatString(ctx, format, ref vaCursor);
|
||||
return true;
|
||||
}
|
||||
|
||||
private static int WriteSnprintfOutput(
|
||||
CpuContext ctx,
|
||||
ulong destination,
|
||||
|
||||
Reference in New Issue
Block a user