Re: [Gems-users] Magic Instructions


Date: Thu, 14 Sep 2006 08:27:24 -0600
From: "Liqun Cheng" <liqun.cheng@xxxxxxxxx>
Subject: Re: [Gems-users] Magic Instructions
magic-break-enable only catches magic instruction 0x4000 on sparc machine, so you need to use MAGIC(0x4000) instead of MAGIC(1) here. We had some discussion on this topic at simics's forum, please check those out.
I would recommend to use assembly instruction "sethi" mannually instead of the MAGIC macro. :)

Legion

On 9/14/06, Daniele Bordes <daniele.bordes@xxxxxxxxx> 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.


[← Prev in Thread] Current Thread [Next in Thread→]