mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: Fix DEBUG_MATH build on sparc.
Need to use '__asm__' instead of plain 'asm'. math/m_debug_clip.c: In function ‘test_cliptest_function’: math/m_debug_clip.c:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ math/m_debug_clip.c:253: warning: implicit declaration of function ‘asm’ Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7d399bf062
commit
18e01393b8
1 changed files with 2 additions and 2 deletions
|
|
@ -231,8 +231,8 @@ extern char *mesa_profile;
|
|||
#define BEGIN_RACE(x) \
|
||||
x = LONG_MAX; \
|
||||
for (cycle_i = 0; cycle_i <10; cycle_i++) { \
|
||||
register long cycle_tmp1 asm("l0"); \
|
||||
register long cycle_tmp2 asm("l1"); \
|
||||
register long cycle_tmp1 __asm__("l0"); \
|
||||
register long cycle_tmp2 __asm__("l1"); \
|
||||
/* rd %tick, %l0 */ \
|
||||
__asm__ __volatile__ (".word 0xa1410000" : "=r" (cycle_tmp1)); /* save timestamp */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue