Eduardo Habkost 
							
						 
					 
					
						
						
							
						
						8063396bf3 
					 
					
						
						
							
							Use OBJECT_DECLARE_SIMPLE_TYPE when possible  
						
						 
						
						... 
						
						
						
						This converts existing DECLARE_INSTANCE_CHECKER usage to
OBJECT_DECLARE_SIMPLE_TYPE when possible.
$ ./scripts/codeconverter/converter.py -i \
  --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]')
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Acked-by: Paul Durrant <paul@xen.org >
Message-Id: <20200916182519.415636-6-ehabkost@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com > 
						
						
					 
					
						2020-09-18 14:12:32 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eduardo Habkost 
							
						 
					 
					
						
						
							
						
						8110fa1d94 
					 
					
						
						
							
							Use DECLARE_*CHECKER* macros  
						
						 
						
						... 
						
						
						
						Generated using:
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Message-Id: <20200831210740.126168-12-ehabkost@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Message-Id: <20200831210740.126168-13-ehabkost@redhat.com >
Message-Id: <20200831210740.126168-14-ehabkost@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com > 
						
						
					 
					
						2020-09-09 09:27:09 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eduardo Habkost 
							
						 
					 
					
						
						
							
						
						db1015e92e 
					 
					
						
						
							
							Move QOM typedefs and add missing includes  
						
						 
						
						... 
						
						
						
						Some typedefs and macros are defined after the type check macros.
This makes it difficult to automatically replace their
definitions with OBJECT_DECLARE_TYPE.
Patch generated using:
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')
which will split "typdef struct { ... } TypedefName"
declarations.
Followed by:
 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')
which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Message-Id: <20200831210740.126168-9-ehabkost@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Message-Id: <20200831210740.126168-10-ehabkost@redhat.com >
Message-Id: <20200831210740.126168-11-ehabkost@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com > 
						
						
					 
					
						2020-09-09 09:26:43 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Markus Armbruster 
							
						 
					 
					
						
						
							
						
						ec150c7e09 
					 
					
						
						
							
							include: Make headers more self-contained  
						
						 
						
						... 
						
						
						
						Back in 2016, we discussed[1] rules for headers, and these were
generally liked:
1. Have a carefully curated header that's included everywhere first.  We
   got that already thanks to Peter: osdep.h.
2. Headers should normally include everything they need beyond osdep.h.
   If exceptions are needed for some reason, they must be documented in
   the header.  If all that's needed from a header is typedefs, put
   those into qemu/typedefs.h instead of including the header.
3. Cyclic inclusion is forbidden.
This patch gets include/ closer to obeying 2.
It's actually extracted from my "[RFC] Baby steps towards saner
headers" series[2], which demonstrates a possible path towards
checking 2 automatically.  It passes the RFC test there.
[1] Message-ID: <87h9g8j57d.fsf@blackfin.pond.sub.org >
    https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03345.html 
[2] Message-Id: <20190711122827.18970-1-armbru@redhat.com >
    https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg02715.html 
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-Id: <20190812052359.30071-2-armbru@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2019-08-16 13:31:51 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Markus Armbruster 
							
						 
					 
					
						
						
							
						
						121d07125b 
					 
					
						
						
							
							Clean up header guards that don't match their file name  
						
						 
						
						... 
						
						
						
						Header guard symbols should match their file name to make guard
collisions less likely.  Offenders found with
scripts/clean-header-guards.pl -vn.
Cleaned up with scripts/clean-header-guards.pl, followed by some
renaming of new guard symbols picked by the script to better ones.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Richard Henderson <rth@twiddle.net > 
						
						
					 
					
						2016-07-12 16:19:16 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Beniamino Galvani 
							
						 
					 
					
						
						
							
						
						286226a479 
					 
					
						
						
							
							allwinner-a10-pit: implement prescaler and source selection  
						
						 
						
						... 
						
						
						
						This implements the prescaler and source fields of the timer control
register. The source for each timer can be selected among 4 clock
inputs whose frequencies are set through model properties.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 1395771730-16882-6-git-send-email-b.galvani@gmail.com 
Signed-off-by: Peter Maydell <peter.maydell@linaro.org > 
						
						
					 
					
						2014-04-17 21:34:06 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Beniamino Galvani 
							
						 
					 
					
						
						
							
						
						323a8771cf 
					 
					
						
						
							
							allwinner-a10-pit: avoid generation of spurious interrupts  
						
						 
						
						... 
						
						
						
						The model was generating interrupts for all enabled timers after the
expiration of one of them. Avoid this by passing explicitly the timer
index to the callback function.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com >
Reviewed-by: Li Guang <lig.fnst@cn.fujitsu.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 1395771730-16882-4-git-send-email-b.galvani@gmail.com 
[PMM: avoid duplicate typedef of AwA10PITState]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org > 
						
						
					 
					
						2014-04-17 21:34:06 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								liguang 
							
						 
					 
					
						
						
							
						
						3589de8c97 
					 
					
						
						
							
							hw/timer: add allwinner a10 timer  
						
						 
						
						... 
						
						
						
						Signed-off-by: liguang <lig.fnst@cn.fujitsu.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 1387159292-10436-3-git-send-email-lig.fnst@cn.fujitsu.com 
Signed-off-by: Peter Maydell <peter.maydell@linaro.org > 
						
						
					 
					
						2013-12-17 20:12:51 +00:00