qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC 01/15] cpus.h: include cpu-common.h


From: Igor Mammedov
Subject: Re: [Qemu-devel] [RFC 01/15] cpus.h: include cpu-common.h
Date: Mon, 13 Aug 2012 21:06:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/07/2012 09:56 PM, Eduardo Habkost wrote:
Needed for the definition of fprint_function.

This is not necessary right now, but it will be necessary if code that
doesn't include cpu-common.h includes cpus.h.
could fprint_function declaration be moved somewhere else?
A lot of headers include cpu-common.h just for the sake of these simple/independent declarations and forward declared structures pointers. Maybe these trivial cases could be moved in separate header qemu-common-trivial.h. It could replace cpu-common.h in most headers and would help to untangle circular deps between cpu-common.h and cpu.h and reduce complications when one tries to embed in cpu some Device/SysBusDevice as a child.


Signed-off-by: Eduardo Habkost <address@hidden>
---
  cpus.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/cpus.h b/cpus.h
index 81bd817..061ff7f 100644
--- a/cpus.h
+++ b/cpus.h
@@ -1,6 +1,8 @@
  #ifndef QEMU_CPUS_H
  #define QEMU_CPUS_H

+#include "qemu-common.h"
+
  /* cpus.c */
  void qemu_init_cpu_loop(void);
  void resume_all_vcpus(void);



--
Regards,
  Igor



reply via email to

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