after some tests I came to this conclusion:

regardless of the compiler the statement MAGIC(6000 + a) fails.

The reason for this is that the generated code by the compiler becomes 

sethi %g1, %g0

this violates the requirement that the parameter need to be an immediate value. 

So, I came to the conclusion that it really doesn't matter which compiler I 
use, it's the actual expression that is the problem. 

The sad story is that i must use the sethi instruction to trigger a 'magic' 
breakpoint in my simulator.  This is fine in most cases where I usually send a 
constant value as a parameter. Unfortunately, this exceptional case requires me 
to pass along a value that is unknown at compilation time...

Seems I'm stuck at this point.

Thanks for all the help anyway.

BR,
Mladen
--
This message posted from opensolaris.org

Reply via email to