Try the following code. It uses 0x40000 explicitly (4<<16):
#define MAGIC_BREAK do { \
__asm__ __volatile__ ("sethi 0x40000, %g0"); \
} while (0);
Daniele Bordes wrote:
Are you sure it is MAGIC(0x4000) and not MAGIC(0x40000)? Because I
tried to use MAGIC_BREAKPOINT in my code and it doesn't work, and I
noticed that according to macro definition in magic_instruction.h, it
is substituted with
MAGIC(0x40000) and not with MAGIC(0x4000) ...
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
--
http://www.cs.wisc.edu/~gibson [esc]:wq!
|