qemu-patch-raspberry4/include/exec
Alexander Graf 732f9e89a1 linux-user: fix segmentation fault passing with h2g(x) != x
When forwarding a segmentation fault into the guest process, we were passing
the host's address directly into the guest process's signal descriptor.

That obviously confused the guest process, since it didn't know what to make
of the (usually 32-bit truncated) address. Passing in h2g(address) makes the
guest process a lot happier.

To make the code more obvious, introduce a h2g_nocheck() macro that does the
same as h2g(), but allows us to convert addresses that may be outside of guest
mapped range into the guest's view of address space.

This fixes java running in arm-linux-user for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2013-07-23 17:28:28 +03:00
..
user elfload: use abi_llong/ullong instead of target_llong/ullong 2013-04-18 14:12:31 +02:00
address-spaces.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
cpu-all.h linux-user: fix segmentation fault passing with h2g(x) != x 2013-07-23 17:28:28 +03:00
cpu-common.h memory: return MemoryRegion from qemu_ram_addr_from_host 2013-07-04 17:42:46 +02:00
cpu-defs.h cpu: Make first_cpu and next_cpu CPUState 2013-07-09 21:32:54 +02:00
cputlb.h exec: Resolve subpages in one step except for IOTLB fills 2013-06-20 16:32:46 +02:00
def-helper.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
exec-all.h tcg/aarch64: implement new TCG target for aarch64 2013-06-12 16:20:22 +01:00
gdbstub.h configure: Make NPTL non-optional 2013-07-22 21:54:52 +03:00
gen-icount.h tcg: Don't make exitreq flag a local temporary 2013-03-09 18:16:43 +01:00
hwaddr.h hwaddr: Make hwaddr type usable beyond softmmu 2013-06-28 13:25:13 +02:00
ioport.h piolist: add owner argument to initialization functions and pass devices 2013-07-04 17:42:47 +02:00
memory-internal.h ioport: Switch dispatching to memory core layer 2013-07-04 17:42:44 +02:00
memory.h exec: separate current radix tree from the one being built 2013-07-04 17:42:49 +02:00
poison.h exec: eliminate stq_phys_notdirty 2013-05-24 18:42:27 +02:00
softmmu-semi.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
softmmu_defs.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
softmmu_exec.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
softmmu_header.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
softmmu_template.h memory: propagate errors on I/O dispatch 2013-05-29 16:27:32 +02:00
spinlock.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00