Simics supports a variety of user-customizable magic services that all
use magic instructions. You can find out more about them using via the
magic instruction hap (Simics Reference Manual).
There is one built-in magic instruction, the magic break. For SPARC
architectures, this corresponds to magic number 0x40000. Since your code
below uses Magic #1, I'm not surprised that your code isn't stopping.
magic-instruction.h also defines the MAGIC_BREAKPOINT macro -- its much
easier to use MAGIC_BREAKPOINT instead:
#define MAGIC_BREAKPOINT MAGIC(0x40000)
Regards,
Dan Gibson
Daniele Bordes wrote:
Hi all. I have problems with Magic Instructions. The simulated machine
is an 8-Sparc processors running Solaris 10. After having executed
simics command "magic-break-enable", I tried to compile on the target
machine this piece of code:
#include<magic-instruction.h>
void *global_data;
int main()
{
MAGIC(1);
}
but when I run the obtained executable on target machine, nothing
happens, there is, simulation does not stop.
Does someone know what was wrong?
_______________________________________________
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.
|