[CCC DEV] Leon and Microblaze port
Jonas
jonas.scheveneels at gmail.com
Wed Mar 28 13:38:08 BST 2012
Dear sirs,
My colleague and I are trying to port the transterpreter virtual machine to
the Xilinx microblaze and Leon Sparc softcores, we have however encountered
a problem
while compiling the source of the transterpreter. In the file mem_array.c
we get an error telling us that ptr is not an integer and can't be used to
index an array as well as a warning
about the function check_addr(ptr) saying that it casts a pointer to an
integer.
static inline void check_addr(WORD ptr) {
if (ptr < 0 || ptr >= mem_size) {
exit_runloop(EXIT_BAD_ADDR);
}
}
WORD read_mem(POOTER ptr)
{
check_addr(ptr);
return *(WORD *)(&memory_array[ptr]);
}
This problem persists with other functions using the memory array and the
check_addr function within this file.
Do you have any idea about what we did wrong?
thanks in advance,
Elias Puttemans and Jonas Scheveneels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.concurrency.cc/pipermail/developers/attachments/20120328/23485657/attachment.htm>
More information about the developers
mailing list