mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
gallivm: Check whether to stop disassemble only for x86
Because the if statement that checks whether we have a return statement is valid only on x86, surround it with X86 or X86-64 arch defines Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
b3d42934a1
commit
a3e3c3e621
1 changed files with 2 additions and 0 deletions
|
|
@ -200,9 +200,11 @@ disassemble(const void* func, std::stringstream &buffer)
|
|||
* XXX: This currently assumes x86
|
||||
*/
|
||||
|
||||
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
|
||||
if (Size == 1 && bytes[pc] == 0xc3) {
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Advance.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue