llvmpipe: improvements to JIT assembly dump

Fix disassembly off-by-one instruction bug, add
Aarch64 support, add addresses to symbol names,
cleanup iostream usage.

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30626>
This commit is contained in:
Aleksi Sapon
2024-08-13 10:35:27 -04:00
committed by Marge Bot
parent af8c680087
commit 6a3234ee3b
2 changed files with 35 additions and 26 deletions

View File

@@ -104,7 +104,7 @@ def lookupMap(filename, matchSymbol):
def lookupAsm(filename, desiredFunction):
stream = open(filename + '.asm', 'rt')
while stream.readline() != desiredFunction + ':\n':
while not stream.readline().startswith(desiredFunction + ' '):
pass
asm = []