acpi-build: fix misaligned access
commiteee822e3595bbdd69e71198edd65dd29db27a6e5
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 12 Mar 2014 14:13:58 +0000 (12 16:13 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 12 Mar 2014 15:12:00 +0000 (12 17:12 +0200)
tree7362bfe2b81d9a9427f1bbfac677dbe93ab66b0b
parent13f65b2e1073cf7e2c8fb3880c77d8a53fa2f95e
acpi-build: fix misaligned access

clang build reported a misaligned access:
    runtime error: store to misaligned address 0x2b5aa47dfb19 for type
    'uint16_t' (aka 'unsigned short'), which requires 2 byte alignment
    0x2b5aa47dfb19: note: pointer points here
     45 53 54  0b ff ff 5b 80 50 45 4f  52 01 50 45 53 54 01 5b  81 0b 50
    45 4f 52 01 50  45 50 54 08 14

fix this up

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c