Blue Swirl 42c812b98b m48t59: avoid structure holes spotted by pahole
Report from pahole on amd64 host:
struct M48t59State {
	uint32_t                   type;                 /*     0     4 */

	/* XXX 4 bytes hole, try to pack */

	qemu_irq                   IRQ;                  /*     8     8 */
	uint32_t                   io_base;              /*    16     4 */
	uint32_t                   size;                 /*    20     4 */
	time_t                     time_offset;          /*    24     8 */
	time_t                     stop_time;            /*    32     8 */
	struct tm                  alarm;                /*    40    56 */
	/* --- cacheline 1 boundary (64 bytes) was 32 bytes ago --- */
	struct QEMUTimer *         alrm_timer;           /*    96     8 */
	struct QEMUTimer *         wd_timer;             /*   104     8 */
	uint8_t                    lock;                 /*   112     1 */

	/* XXX 1 byte hole, try to pack */

	uint16_t                   addr;                 /*   114     2 */

	/* XXX 4 bytes hole, try to pack */

	uint8_t *                  buffer;               /*   120     8 */
	/* --- cacheline 2 boundary (128 bytes) --- */

	/* size: 128, cachelines: 2 */
	/* sum members: 119, holes: 3, sum holes: 9 */
};	/* definitions: 1 */

Fix by rearranging the structure to avoid padding.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2011-08-21 20:02:01 +00:00
2011-08-12 08:31:30 -05:00
2011-08-21 08:37:10 -05:00
2011-06-20 15:13:34 -03:00
2011-08-10 17:34:13 +02:00
2011-08-10 17:34:13 +02:00
2011-04-08 13:03:34 -06:00
2008-12-13 09:32:43 +00:00
2009-09-12 07:36:22 +00:00
2009-05-13 20:54:26 +01:00
2011-05-08 10:09:59 +02:00
2011-08-02 15:53:40 +02:00
2011-08-02 15:53:40 +02:00
2009-03-10 21:43:35 +00:00
2010-11-01 00:54:06 +03:00
2011-06-20 17:08:57 +01:00
2011-07-21 16:48:13 -03:00
2011-08-12 13:07:58 +01:00
2011-03-16 17:11:07 -03:00
2011-06-26 18:25:35 +00:00
2011-08-04 15:51:22 +02:00
2011-07-30 09:41:14 +00:00
2009-09-12 07:36:22 +00:00
2011-06-07 13:52:10 -05:00
2011-01-20 20:54:21 +00:00
2009-12-17 18:12:04 +01:00
2010-05-22 08:02:12 +00:00
2009-10-01 16:12:16 -05:00
2010-11-21 09:16:57 -06:00
2011-08-04 15:51:22 +02:00
2011-08-04 15:51:22 +02:00
2011-06-14 03:08:57 +02:00
2008-12-14 08:50:18 +00:00
2011-08-05 10:57:34 -05:00
2011-08-21 08:37:10 -05:00
2010-03-21 08:28:47 +00:00
2011-08-20 23:01:08 -05:00
2011-08-20 23:01:08 -05:00
2010-01-08 09:58:40 -06:00
2011-07-21 16:48:13 -03:00
2010-12-09 14:23:24 +01:00
2011-07-25 14:38:56 +00:00
2011-08-21 15:33:33 +00:00
2011-08-21 15:33:22 +00:00
2011-02-09 10:33:54 +02:00
2009-11-17 08:49:39 -06:00
2010-07-01 14:27:13 -03:00
2009-10-27 12:28:59 -05:00
2011-08-20 23:01:08 -05:00
2010-09-21 18:36:42 +02:00
2011-08-02 15:53:40 +02:00
2011-08-02 15:53:40 +02:00
2011-08-05 10:57:35 -05:00
2010-05-19 12:45:54 -03:00
2011-01-09 20:59:53 +00:00
2011-03-13 14:44:22 +00:00
2009-11-17 08:49:38 -06:00
2010-05-19 12:45:54 -03:00
2010-10-01 10:12:43 -03:00
2011-07-21 16:48:13 -03:00
2010-05-19 12:45:54 -03:00
2010-05-19 12:45:54 -03:00
2010-09-18 05:53:14 +00:00
2008-12-14 08:50:18 +00:00
2011-07-23 11:26:12 -05:00
2009-09-13 19:38:43 +00:00
2011-07-29 08:25:44 -05:00
2010-03-14 22:04:50 +01:00
2008-12-04 11:29:42 +00:00
2009-10-01 16:12:16 -05:00
2009-03-05 23:01:23 +00:00
2011-07-23 11:57:53 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%