qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Discussion 02/10] NEED_CPU_H: remove '#include "cpu.h"


From: Peter Maydell
Subject: Re: [Qemu-devel] [Discussion 02/10] NEED_CPU_H: remove '#include "cpu.h"' from include/qemu-common.h
Date: Tue, 4 Mar 2014 12:34:17 +0000

On 4 March 2014 12:09, Xuebing wang <address@hidden> wrote:
> target-*/gdbstub.c implementers only need to know gdbstub hooks (thus
> gdbstub API), they don't care "cpu.h", although knowledge of "cpu.h" helps.

The gdbstub.c code is just a tiny part of the target-* frontend; there
is no way that anybody working on the gdbstub isn't going to know
already about the cpu.h interfaces. In particular, the code in those
files is generally implementing the gdbstub interfaces by looking
at the internal details of the target CPU. The only reason they don't
just include cpu.h is simply that at the moment qemu-common.h
does it for them.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]