Browse Source

* include/cln/modules.h (CL_JUMP_TO): Fix mips* brokenness.

master
Richard Kreckel 20 years ago
parent
commit
8dd3e6cf4b
  1. 4
      ChangeLog
  2. 3
      include/cln/modules.h

4
ChangeLog

@ -1,3 +1,7 @@
2005-08-30 Richard B. Kreckel <kreckel@ginac.de>
* include/cln/modules.h (CL_JUMP_TO): Fix mips* brokenness.
2005-08-27 Bruno Haible <bruno@clisp.org>
* src/integer/bitwise/cl_I_ash_I.cc (ash): Avoid shifting a 32-bit

3
include/cln/modules.h

@ -138,7 +138,8 @@
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr)))
#endif
#if defined(__mips__) || defined(__mipsel__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("%*j %0" : : "d" ((void*)(addr)))
//#define CL_JUMP_TO(addr) ASM_VOLATILE("%*j %0" : : "d" ((void*)(addr)))
#define CL_JUMP_TO(addr) ASM_VOLATILE("b " ASM_UNDERSCORE_PREFIX #addr)
#endif
#if defined(__sparc__) || defined(__sparc64__)
#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0\n\tnop" : : "r" ((void*)(addr)))

Loading…
Cancel
Save