I am using power-eabivle-gcc 4.9.2. I am writing a assembly code which uses instruction:
stwcx
but, I am getting assembler error: Error: unrecognized opcode: `stwcx'
target board: MPC5748G (for e200z4, core0)
complier flag :
sample invocation:
any reason why assembler not able to recognize this instruction? As per e200z4 documentation this instruction is supported.
Hi,
notice that it is "stwcx.", not just "stwcx". I tested inline asm command like:
asm("stwcx. %r4,0,%r3");
... and it is working on my side.
And also notice that reservation logic is not implemented between cores on MPC57xx devices. It can be used only on single core for different tasks. It's necessary to use semaphores between the cores.
https://community.nxp.com/thread/437523#comment-856994
Regards,
Lukas