QEMU With E2K User Support
Go to file
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
audio Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
block Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
bsd-user Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
darwin-user darwin-user: Remove two unused variables 2011-08-07 09:37:49 +00:00
default-configs
docs memory: correct documentation typos 2011-08-12 08:31:30 -05:00
fpu softfloat: change default nan definitions to variables 2011-07-29 08:25:45 -05:00
fsdev Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
gdb-xml
hw m48t59: avoid structure holes spotted by pahole 2011-08-21 20:02:01 +00:00
libcacard Remove remenants of qemu_malloc 2011-08-21 08:37:10 -05:00
linux-headers Import kernel headers 2011-06-20 15:13:34 -03:00
linux-user Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
net Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
pc-bios seabios: update to master 2011-08-10 17:34:13 +02:00
qapi Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qga Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
QMP
roms seabios: update to master 2011-08-10 17:34:13 +02:00
scripts qapi: fix build issue due to missing newline in generated header 2011-08-12 08:31:30 -05:00
slirp Merge branch 'queues/slirp' of git://git.kiszka.org/qemu 2011-08-21 19:19:29 +00:00
sysconfigs/target
target-alpha Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-arm Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-cris Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-i386 Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-lm32 Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-m68k Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-microblaze Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-mips Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-ppc Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-s390x Fix conversions from pointer to tcg_target_long 2011-08-21 15:32:21 +00:00
target-sh4 Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-sparc Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
target-unicore32 Fix conversions from pointer to tcg_target_long 2011-08-21 15:32:21 +00:00
tcg tcg-ia64: Fix typos in AREG0 setup in prologue. 2011-08-21 18:52:26 +00:00
tests Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
ui Convert last qemu_free and qemu_malloc uses 2011-08-21 18:42:08 +00:00
.gitignore coroutine: add test-coroutine automated tests 2011-08-02 15:53:40 +02:00
.gitmodules
a.out.h
acl.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
acl.h
aes.c
aes.h
aio.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
alpha-dis.c
alpha.ld
arch_init.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
arch_init.h
arm-dis.c
arm-semi.c arm-semi: Provide access to CLI arguments passed through the "-append" option 2011-07-11 16:05:46 +03:00
arm.ld
async.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
balloon.c balloon: Reject negative balloon values 2011-08-04 16:43:09 -05:00
balloon.h balloon: Don't allow multiple balloon handler registrations 2011-08-04 16:43:09 -05:00
bitmap.c
bitmap.h Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
bitops.c
bitops.h
block_int.h block: Add bdrv_co_readv/writev 2011-08-02 15:53:40 +02:00
block-migration.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
block-migration.h
block.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
block.h block: Add bdrv_co_readv/writev 2011-08-02 15:53:40 +02:00
blockdev.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
blockdev.h
bswap.h move unaligned memory access functions to bswap.h 2011-07-29 08:25:45 -05:00
bt-host.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
bt-host.h
bt-vhci.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
buffered_file.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
buffered_file.h
cache-utils.c
cache-utils.h
Changelog Changelog: Add explanatory note that this file is no longer updated 2011-06-13 21:16:27 +02:00
check-qdict.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
check-qfloat.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
check-qint.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
check-qjson.c
check-qlist.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
check-qstring.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
cmd.c cmd: fix operator precedence 2011-06-20 17:08:57 +01:00
cmd.h
CODING_STYLE CODING_STYLE: explicitly allow braceless 'else if' 2011-07-29 09:33:56 -05:00
compatfd.c Register Linux dyntick timer as per-thread signal 2011-07-23 11:26:12 -05:00
compatfd.h Register Linux dyntick timer as per-thread signal 2011-07-23 11:26:12 -05:00
compiler.h Introduce compiler.h header file 2011-07-21 16:48:13 -03:00
config.h
configure Check for presence of compiler -pthread flag. 2011-08-21 18:46:34 +00:00
console.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
console.h Introduce a 'client_add' monitor command accepting an open FD 2011-07-23 11:19:02 -05:00
COPYING
COPYING.LIB
coroutine-gthread.c Convert last qemu_free and qemu_malloc uses 2011-08-21 18:42:08 +00:00
coroutine-ucontext.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
coroutine-win32.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
cpu-all.h fix QLIST usage for RAM list 2011-08-12 13:07:58 +01:00
cpu-common.h Merge remote-tracking branch 'agraf/xen-next' into staging 2011-07-29 09:42:12 -05:00
cpu-defs.h
cpu-exec.c tcg: Reload local variables after return from longjmp 2011-07-12 20:53:28 +00:00
cpus.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
cpus.h Command line support for altering the log file location 2011-06-15 16:51:24 +00:00
cris-dis.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
cutils.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
def-helper.h
device_tree.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
device_tree.h
dis-asm.h
disas.c Remove exec-all.h include directives 2011-06-26 18:25:35 +00:00
disas.h
dma-helpers.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
dma.h move QEMUSGList typedef 2011-08-04 15:51:22 +02:00
dyngen-exec.h exec.h cleanup 2011-07-30 09:41:14 +00:00
elf.h
envlist.c
envlist.h
error_int.h
error.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
error.h Error: Fix build when qemu-common.h is not included 2011-07-21 16:48:13 -03:00
exec-all.h Fix unassigned memory access handling 2011-07-20 21:28:08 +00:00
exec-memory.h Integrate I/O memory regions into qemu 2011-08-08 10:15:53 -05:00
exec.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
gdbstub.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
gdbstub.h
gen-icount.h
HACKING Convert last qemu_free and qemu_malloc uses 2011-08-21 18:42:08 +00:00
hmp-commands.hx HMP: Remove the duplicated info "info kvm" in hmp-commands.hx. 2011-08-03 11:17:36 +01:00
host-utils.c
host-utils.h
hpet.h
hppa-dis.c hppa: Fix printf warnings in hppa-dis.c. 2011-07-01 21:06:48 +00:00
hppa.ld
i386-dis.c
i386.ld
ia64-dis.c
ia64.ld
input.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
iohandler.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
ioport-user.c
ioport.c ioport: register ranges by byte aligned addresses always 2011-07-29 08:25:44 -05:00
ioport.h report serial devices created with -device in the PIIX4 config space 2011-07-23 10:56:55 -05:00
iorange.h
iov.c Add iov_clear() 2011-08-04 15:51:22 +02:00
iov.h Add iov_clear() 2011-08-04 15:51:22 +02:00
json-lexer.c
json-lexer.h
json-parser.c
json-parser.h
json-streamer.c
json-streamer.h
kvm-all.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
kvm-stub.c Remove exec-all.h include directives 2011-06-26 18:25:35 +00:00
kvm.h kvm: x86: Pass KVMState to kvm_arch_get_supported_cpuid 2011-06-20 15:24:00 -03:00
libfdt_env.h Fix libfdt warnings on Darwin 2011-06-14 03:08:57 +02:00
LICENSE
linux-aio.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
m68k-dis.c
m68k-semi.c m68k-semi.c: Use correct check for failure of do_brk() 2011-06-21 20:29:01 +03:00
m68k.ld
MAINTAINERS MAINTAINERS: add entry for Xen 2011-08-05 10:57:34 -05:00
Makefile Remove remenants of qemu_malloc 2011-08-21 08:37:10 -05:00
Makefile.dis
Makefile.hw move unaligned memory access functions to bswap.h 2011-07-29 08:25:45 -05:00
Makefile.objs Remove qemu_malloc/qemu_free 2011-08-20 23:01:08 -05:00
Makefile.target Remove qemu_malloc/qemu_free 2011-08-20 23:01:08 -05:00
Makefile.user
memory.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
memory.h memory: add API for creating ROM/device regions 2011-08-12 08:31:30 -05:00
microblaze-dis.c
migration-exec.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
migration-fd.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
migration-tcp.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
migration-unix.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
migration.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
migration.h
mips-dis.c
mips.ld
module.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
module.h qapi: add module init types for qapi 2011-07-21 16:48:13 -03:00
monitor.c monitor: Prevent sign-extension of 32-bit addresses printed by info tlb 2011-08-21 19:50:03 +00:00
monitor.h
nbd.c Wrap recv to avoid warnings 2011-07-25 14:38:56 +00:00
nbd.h
net.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
net.h net: Consistently use qemu_macaddr_default_if_unset 2011-07-23 10:19:50 -05:00
notify.c notifier: Pass data argument to callback 2011-07-23 11:26:06 -05:00
notify.h notifier: Pass data argument to callback 2011-07-23 11:26:06 -05:00
os-posix.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
os-win32.c w32: Fix format string regression 2011-08-21 15:33:33 +00:00
osdep.c
osdep.h w64: Add definition of FMT_pid 2011-08-21 15:33:22 +00:00
oslib-posix.c Add missing trace call to oslib-posix.c:qemu_vmalloc() 2011-07-29 09:33:48 -05:00
oslib-win32.c
path.c
pci-ids.txt
pflib.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
pflib.h
poison.h Avoid CPU endian memory accesses in devices 2011-07-20 21:22:43 +00:00
posix-aio-compat.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
ppc64.ld
ppc-dis.c
ppc.ld
qapi-schema-guest.json guest agent: add guest agent RPCs/commands 2011-07-21 16:48:15 -03:00
qapi-schema-test.json qapi: test schema used for unit tests 2011-07-21 16:48:14 -03:00
qbool.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qbool.h
qdict-test-data.txt
qdict.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qdict.h
qemu_socket.h
qemu-aio.h
qemu-barrier.h
qemu-char.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-char.h Introduce a 'client_add' monitor command accepting an open FD 2011-07-23 11:19:02 -05:00
qemu-common.h Remove qemu_malloc/qemu_free 2011-08-20 23:01:08 -05:00
qemu-config.c showing a splash picture when start 2011-07-29 08:25:44 -05:00
qemu-config.h
qemu-coroutine-int.h coroutines: Locks 2011-08-02 15:53:40 +02:00
qemu-coroutine-lock.c coroutines: Use one global bottom half for CoQueue 2011-08-02 15:53:41 +02:00
qemu-coroutine.c coroutine: introduce coroutines 2011-08-01 12:14:09 +02:00
qemu-coroutine.h coroutines: Locks 2011-08-02 15:53:40 +02:00
qemu-doc.texi sdl: Add zoom hot keys 2011-08-05 10:57:35 -05:00
qemu-error.c Strip trailing '\n' from error_report()'s first argument 2011-06-24 09:13:36 +01:00
qemu-error.h
qemu-ga.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-img-cmds.hx Add missing documentation for qemu-img -p 2011-07-20 11:13:52 +02:00
qemu-img.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-img.texi Add missing documentation for qemu-img -p 2011-07-20 11:13:52 +02:00
qemu-io.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-lock.h qemu-lock.h: Remove non-pthreads spinlock implementations 2011-02-20 15:20:06 +01:00
qemu-log.h
qemu-nbd.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-nbd.texi
qemu-objects.h
qemu-option.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-option.h
qemu-options.h
qemu-options.hx revamp acpitable parsing and allow to specify complete (headerful) table 2011-07-30 09:33:31 +00:00
qemu-os-posix.h
qemu-os-win32.h
qemu-progress.c
qemu-queue.h
qemu-sockets.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-tech.texi
qemu-thread-posix.c
qemu-thread-posix.h
qemu-thread-win32.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-thread-win32.h
qemu-thread.h
qemu-timer-common.c
qemu-timer.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-timer.h qemu-timer: Introduce clock reset notifier 2011-07-23 11:26:12 -05:00
qemu-tool.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-x509.h
qemu.sasl Add SASL authentication support ("Daniel P. Berrange") 2009-03-06 20:27:28 +00:00
qerror.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qerror.h Introduce a 'client_add' monitor command accepting an open FD 2011-07-23 11:19:02 -05:00
qfloat.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qfloat.h
qint.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qint.h
qjson.c
qjson.h
qlist.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qlist.h qlist: add qlist_first()/qlist_next() 2011-07-21 16:48:13 -03:00
qmp-commands.hx qmp: fix efect -> effect typo in qmp-commands.hx 2011-07-27 15:57:09 +01:00
qobject.h
qstring.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qstring.h
range.h
readline.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
readline.h
README
rules.mak build: Move QEMU_INCLUDES before QEMU_CFLAGS 2011-08-12 08:31:29 -05:00
rwhandler.c
rwhandler.h
s390-dis.c
s390.ld
savevm.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
sh4-dis.c
simpletrace.c simpletrace: suppress a warning from unused variable 2011-07-25 14:40:18 +00:00
simpletrace.h
softmmu_defs.h
softmmu_exec.h
softmmu_header.h
softmmu_template.h
softmmu-semi.h Correct spelling of licensed 2011-07-23 11:26:12 -05:00
sparc64.ld
sparc-dis.c
sparc.ld
spice-qemu-char.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
sysemu.h showing a splash picture when start 2011-07-29 08:25:44 -05:00
targphys.h
tcg-runtime.c
test-coroutine.c coroutine: add test-coroutine --benchmark-lifecycle 2011-08-02 15:53:40 +02:00
test-qmp-commands.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
test-visitor.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
thunk.c
thunk.h
TODO
trace-events scsi: add special traces for common commands 2011-08-12 08:31:28 -05:00
translate-all.c Delegate setup of TCG temporaries to targets 2011-06-26 18:25:43 +00:00
uboot_image.h
usb-bsd.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
usb-linux.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
usb-redir.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
usb-stub.c
user-exec.c Remove unused is_softmmu parameter from cpu_handle_mmu_fault 2011-08-07 09:32:01 +00:00
VERSION Open 1.0 development branch. 2011-07-23 11:57:53 -05:00
version.rc
vgafont.h
vl.c Add trace points for g_malloc/g_free functions 2011-08-20 23:01:09 -05:00
x86_64.ld
xen-all.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
xen-mapcache.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
xen-mapcache.h xen: fix xen-mapcache build on non-Xen capable targets 2011-07-22 17:43:42 +00:00
xen-stub.c xen_console: support the new extended xenstore protocol 2011-07-17 01:54:25 +02:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.