qemu-e2k/include/exec
Alexander Graf 8be656b87c linux-user: Allocate thunk size dynamically
We store all struct types in an array of static size without ever
checking whether we overrun it. Of course some day someone (like me
in another, ancient ALSA enabling patch set) will run into the limit
without realizing it.

So let's make the allocation dynamic. We already know the number of
structs that we want to allocate, so we only need to pass the variable
into the respective piece of code.

Also, to ensure we don't accidently overwrite random memory, add some
asserts to sanity check whether a thunk is actually part of our array.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-06-15 11:36:58 +03:00
..
user linux-user: Allocate thunk size dynamically 2015-06-15 11:36:58 +03:00
address-spaces.h
cpu_ldst_template.h cpu_ldst_template.h: Drop unused cpu_ldfq/stfq/ldfl/stfl accessors 2015-01-20 15:19:34 +00:00
cpu_ldst_useronly_template.h cpu_ldst.h: Use inline functions for usermode cpu_ld/st accessors 2015-01-20 15:19:34 +00:00
cpu_ldst.h softmmu: support up to 12 MMU modes 2015-06-03 23:56:56 +02:00
cpu-all.h Convert ram_list to RCU 2015-02-16 17:31:55 +01:00
cpu-common.h qemu_ram_foreach_block: pass up error value, and down the ramblock name 2015-06-12 06:54:01 +02:00
cpu-defs.h softmmu: support up to 12 MMU modes 2015-06-03 23:56:56 +02:00
cputlb.h cputlb: remove useless arguments to tlb_unprotect_code_phys, rename 2015-06-05 17:09:59 +02:00
exec-all.h softmmu: Add probe_write() 2015-06-11 10:13:28 +01:00
gdbstub.h
gen-icount.h tcg: Change translator-side labels to a pointer 2015-03-13 12:28:18 -07:00
helper-gen.h
helper-head.h
helper-proto.h
helper-tcg.h
hwaddr.h
ioport.h
memattrs.h target-i386: introduce cpu_get_mem_attrs 2015-06-05 17:10:00 +02:00
memory-internal.h memory: unregister AddressSpace MemoryListener within BQL 2015-02-10 10:25:44 -07:00
memory.h memory: track DIRTY_MEMORY_CODE in mr->dirty_log_mask 2015-06-05 17:09:59 +02:00
poison.h
ram_addr.h memory: make cpu_physical_memory_sync_dirty_bitmap() fully atomic 2015-06-05 17:10:00 +02:00
softmmu-semi.h
spinlock.h