On Sun, 2006-03-19 at 04:33 -0800, Gene Michael Kishinevsky wrote:
> Hi all,
>
> We've tried using the magic instruction today on our simulated system with
> no success. We're using the bagle system provided by Simics, which is a sun
> sparc64 machine with linux on it. I used the magic-breakpoint-enable command
> in Simics and then ran my simple program on the simulated machine. However,
> we never got the simulation to stop. We tried changing the instructions
> around and even using the magic-instruction.h library definition instead of
> our own. When using the library we got an "unsupported architecture" error
> from the following section of code in the magic library.
>
> #else /* !__sparc && !__i386 && !__powerpc__ */
> #error "Unsupported architecture"
> #endif /* !__sparc && !__i386 && !__powerpc__ */
>
I use the bagle system to run my simulations and I found this problem
too some time ago. The solution was to use __sparc__ instead os __sparc
in the ifdef test.
Best regards,
Ricardo.
--
Ricardo Fernández Pascual
r.fernandez@xxxxxxxxxxx
Murcia. España.
|