summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2016-02-18 16:39:06 +0200
committerOded Gabbay <oded.gabbay@gmail.com>2016-02-19 00:18:11 +0200
commita3e3c3e621a457866e141a18aba094e6e694bd45 (patch)
treec8858096be5b6238dee91b1d30b49176f209f296 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parentb3d42934a1cc4ac47367ea632e7467c2ada46aff (diff)
downloadexternal_mesa3d-a3e3c3e621a457866e141a18aba094e6e694bd45.zip
external_mesa3d-a3e3c3e621a457866e141a18aba094e6e694bd45.tar.gz
external_mesa3d-a3e3c3e621a457866e141a18aba094e6e694bd45.tar.bz2
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>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 7e98f1a..efaf2fa 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -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.