Fix JEM calling assembly: add "sp" and "cc" to the clobber list
commit6d379585730e93fc10c3335a7ddef22524d1e9cf
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 12 Jun 2009 10:57:08 +0000 (12 12:57 +0200)
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 12 Jun 2009 10:59:43 +0000 (12 12:59 +0200)
tree18fde3181a2128e4ef58e1d73daf871f29eeac3a
parent512565e326f2ac39c11bba0544da56c48da3f2d8
Fix JEM calling assembly: add "sp" and "cc" to the clobber list

The assembly code in executeJava() uses the stack, and thus clobbers the stack
pointer. Failure to specify "sp" in clobber list leads to a segmentation fault
when compiled with optimisation. The code also modifies condition flags, add
"cc" to clobber too.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
src/interp/engine/interp_jem.c