~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to qemu/linux-user/qemu.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-01-03 10:39:25 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080103103925-8480u7sq2646hvbh
Tags: 1:59+dfsg-0ubuntu1
* New upstream release
* Build with alsa support (cherry pick from 57+dfsg-2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
#include "cpu.h"
8
8
 
 
9
#undef DEBUG_REMAP
 
10
#ifdef DEBUG_REMAP
 
11
#include <stdlib.h>
 
12
#endif /* DEBUG_REMAP */
 
13
 
9
14
#ifdef TARGET_ABI32
10
15
typedef uint32_t abi_ulong;
11
16
typedef int32_t abi_long;
370
375
    if (host_ptr == g2h(guest_addr))
371
376
        return;
372
377
    if (len > 0)
373
 
        memcpy(g2h(guest_ptr), host_ptr, len);
 
378
        memcpy(g2h(guest_addr), host_ptr, len);
374
379
    free(host_ptr);
375
380
#endif
376
381
}