diff options
author | Paolo Bonzini | 2014-03-28 18:43:14 +0100 |
---|---|---|
committer | Paolo Bonzini | 2014-06-05 16:04:17 +0200 |
commit | 0983979b3a5edbff399c092b90c8be6dc656f2a4 (patch) | |
tree | 32c44c5d57c84545eb9addd910bf73abd9896a7b /hw/9pfs | |
parent | nseries: clean up coding style (diff) | |
download | qemu-0983979b3a5edbff399c092b90c8be6dc656f2a4.tar.gz qemu-0983979b3a5edbff399c092b90c8be6dc656f2a4.tar.xz qemu-0983979b3a5edbff399c092b90c8be6dc656f2a4.zip |
hw: use ld_p/st_p instead of ld_raw/st_raw
The ld_raw and st_raw definitions are only needed in code that
must compile for both user-mode and softmmu emulation. Device
models can use the equivalent ld_p/st_p which are simple
pointer accessors.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/9pfs')
-rw-r--r-- | hw/9pfs/virtio-9p-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index 15a4983eee..653762af1a 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -34,7 +34,7 @@ static void virtio_9p_get_config(VirtIODevice *vdev, uint8_t *config) len = strlen(s->tag); cfg = g_malloc0(sizeof(struct virtio_9p_config) + len); - stw_raw(&cfg->tag_len, len); + stw_p(&cfg->tag_len, len); /* We don't copy the terminating null to config space */ memcpy(cfg->tag, s->tag, len); memcpy(config, cfg, s->config_size); |