Re: [Qemu-devel] Use Clang to compile Qemu?

2011-12-23 Thread 陳韋任
On Fri, Dec 23, 2011 at 02:07:53PM +0100, David Turner wrote: > Some parts of QEMU (the JIT) require the use of a global register variable > to point to the "env" CPU state variable. > > This feature is not supported by Clang (which is not very surprising given > that it uses LLVM as its backend,

Re: [Qemu-devel] Use Clang to compile Qemu?

2011-12-23 Thread David Turner
Some parts of QEMU (the JIT) require the use of a global register variable to point to the "env" CPU state variable. This feature is not supported by Clang (which is not very surprising given that it uses LLVM as its backend, and LLVM explicitely doesn't support this) Until the JIT is modified to

[Qemu-devel] Use Clang to compile Qemu?

2011-12-23 Thread 陳韋任
Hi all, I am trying to build QEMU by using clang, but get error message below. --- In file included from /z/tmp/chenwj/qemu-1.0/user-exec.c:21: /z/tmp/chenwj/qemu-1.0/dyngen-exec.h:64:20: error: global register variables are not supported register CPUState *env asm(AREG0); ^