[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassemb
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly |
Date: |
Wed, 8 Jan 2014 10:07:59 +0000 |
On 8 January 2014 06:55, Stefan Weil <address@hidden> wrote:
> Am 08.01.2014 00:00, schrieb Peter Maydell:
>> Some experimentation suggests it would also be possible to
>> just do
>>
>> extern "C" {
>> #include "disas/bfd.h"
>> }
>>
>> in the C++ file. If that doesn't have any hidden gotchas I don't
>> know about it looks like the nicest solution.
>>
>
> Adding the extern "C" to include/disas/bfd.h would be even better. It
> might be possible to use the glib macros G_BEGIN_DECLS and G_END_DECLSor
> __BEGIN_DECLS and __END_DECLS from the C library for this purpose.
Depends on your point of view. I'd rather keep the C++ in the C++
files, and have QEMU's general header files be C. After all,
every prototype in that header should have C linkage: it's
the definition of print_insn_aarch64() that's the odd one out, not
its declaration.
-- PMM
- [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly, Peter Maydell, 2014/01/07
- [Qemu-devel] [PATCH 2/4] rules.mak: Link with C++ if we have a C++ compiler, Peter Maydell, 2014/01/07
- [Qemu-devel] [PATCH 1/4] rules.mak: Support .cc as a C++ source file suffix, Peter Maydell, 2014/01/07
- [Qemu-devel] [PATCH 4/4] disas: Implement disassembly output for A64, Peter Maydell, 2014/01/07
- [Qemu-devel] [PATCH 3/4] disas: add libvixl source code for AArch64 A64 disassembler, Peter Maydell, 2014/01/07
- Re: [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly, Stefan Weil, 2014/01/07
- Re: [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly, Stefan Weil, 2014/01/07
Re: [Qemu-devel] [PATCH 0/4] disas: add libvixl to support A64 disassembly, Peter Maydell, 2014/01/07