diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-07-14 15:22:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-07-20 21:22:43 +0000 |
commit | 21673cdecb9e9b5a22acaf0a44e47145beb1999e (patch) | |
tree | 48b0f14b6c3fdc8524f9cd5fc171ea420e8b3e62 /poison.h | |
parent | b5176d279a81b3205a6f4e4757b39a4e4f8833e8 (diff) | |
download | qemu-21673cdecb9e9b5a22acaf0a44e47145beb1999e.tar.gz qemu-21673cdecb9e9b5a22acaf0a44e47145beb1999e.tar.bz2 qemu-21673cdecb9e9b5a22acaf0a44e47145beb1999e.zip |
Avoid CPU endian memory accesses in devices
Don't compile virtio.c in hwlib, it depends on memory accesses
performed in CPU endianness.
Make loads and stores in CPU endianness unavailable to devices
and poison them to avoid further bugs.
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'poison.h')
-rw-r--r-- | poison.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -37,6 +37,15 @@ #pragma GCC poison CPUState #pragma GCC poison env +#pragma GCC poison lduw_phys +#pragma GCC poison ldl_phys +#pragma GCC poison ldq_phys +#pragma GCC poison stl_phys_notdirty +#pragma GCC poison stq_phys_notdirty +#pragma GCC poison stw_phys +#pragma GCC poison stl_phys +#pragma GCC poison stq_phys + #pragma GCC poison CPU_INTERRUPT_HARD #pragma GCC poison CPU_INTERRUPT_EXITTB #pragma GCC poison CPU_INTERRUPT_HALT |