Re: [PATCH] util/cacheflush: Fix error generated by clang

2021-01-17 Thread Paolo Bonzini
On 15/01/21 08:56, Gan Qixin wrote: When compiling qemu-fuzz-i386 on aarch64 host, clang reported the following error: ../util/cacheflush.c:38:44: error: value size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths] asm volatile("mrs\t%0,

Re: [PATCH] util/cacheflush: Fix error generated by clang

2021-01-15 Thread Richard Henderson
On 1/14/21 9:56 PM, Gan Qixin wrote: > When compiling qemu-fuzz-i386 on aarch64 host, clang reported the following > error: > > ../util/cacheflush.c:38:44: error: value size does not match register size > specified by the constraint and modifier [-Werror,-Wasm-operand-widths] > asm

[PATCH] util/cacheflush: Fix error generated by clang

2021-01-14 Thread Gan Qixin
When compiling qemu-fuzz-i386 on aarch64 host, clang reported the following error: ../util/cacheflush.c:38:44: error: value size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths] asm volatile("mrs\t%0, ctr_el0" : "=r"(save_ctr_el0));