~ubuntu-branches/ubuntu/trusty/qemu/trusty

« back to all changes in this revision

Viewing changes to include/exec/exec-all.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2013-10-22 22:47:07 UTC
  • mfrom: (1.8.3) (10.1.42 sid)
  • Revision ID: package-import@ubuntu.com-20131022224707-1lya34fw3k3f24tv
Tags: 1.6.0+dfsg-2ubuntu1
* Merge 1.6.0~rc0+dfsg-2exp from debian experimental.  Remaining changes:
  - debian/control
    * update maintainer
    * remove libiscsi, usb-redir, vde, vnc-jpeg, and libssh2-1-dev
      from build-deps
    * enable rbd
    * add qemu-system and qemu-common B/R to qemu-keymaps
    * add D:udev, R:qemu, R:qemu-common and B:qemu-common to
      qemu-system-common
    * qemu-system-arm, qemu-system-ppc, qemu-system-sparc:
      - add qemu-kvm to Provides
      - add qemu-common, qemu-kvm, kvm to B/R
      - remove openbios-sparc from qemu-system-sparc D
      - drop openbios-ppc and openhackware Depends to Suggests (for now)
    * qemu-system-x86:
      - add qemu-common to Breaks/Replaces.
      - add cpu-checker to Recommends.
    * qemu-user: add B/R:qemu-kvm
    * qemu-kvm:
      - add armhf armel powerpc sparc to Architecture
      - C/R/P: qemu-kvm-spice
    * add qemu-common package
    * drop qemu-slof which is not packaged in ubuntu
  - add qemu-system-common.links for tap ifup/down scripts and OVMF link.
  - qemu-system-x86.links:
    * remove pxe rom links which are in kvm-ipxe
    * add symlink for kvm.1 manpage
  - debian/rules
    * add kvm-spice symlink to qemu-kvm
    * call dh_installmodules for qemu-system-x86
    * update dh_installinit to install upstart script
    * run dh_installman (Closes: #709241) (cherrypicked from 1.5.0+dfsg-2)
  - Add qemu-utils.links for kvm-* symlinks.
  - Add qemu-system-x86.qemu-kvm.upstart and .default
  - Add qemu-system-x86.modprobe to set nesting=1
  - Add qemu-system-common.preinst to add kvm group
  - qemu-system-common.postinst: remove bad group acl if there, then have
    udev relabel /dev/kvm.
  - New linaro patches from qemu-linaro rebasing branch
  - Dropped patches:
    * xen-simplify-xen_enabled.patch
    * sparc-linux-user-fix-missing-symbols-in-.rel-.rela.plt-sections.patch
    * main_loop-do-not-set-nonblocking-if-xen_enabled.patch
    * xen_machine_pv-do-not-create-a-dummy-CPU-in-machine-.patch
    * virtio-rng-fix-crash
  - Kept patches:
    * expose_vms_qemu64cpu.patch - updated
    * linaro arm patches from qemu-linaro rebasing branch
  - New patches:
    * fix-pci-add: change CONFIG variable in ifdef to make sure that
      pci_add is defined.
* Add linaro patches
* Add experimental mach-virt patches for arm virtualization.
* qemu-system-common.install: add debian/tmp/usr/lib to install the
  qemu-bridge-helper

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
#if defined(__arm__) || defined(_ARCH_PPC) \
130
130
    || defined(__x86_64__) || defined(__i386__) \
131
 
    || defined(__sparc__) \
 
131
    || defined(__sparc__) || defined(__aarch64__) \
132
132
    || defined(CONFIG_TCG_INTERPRETER)
133
133
#define USE_DIRECT_JUMP
134
134
#endif
230
230
    *(uint32_t *)jmp_addr = addr - (jmp_addr + 4);
231
231
    /* no need to flush icache explicitly */
232
232
}
 
233
#elif defined(__aarch64__)
 
234
void aarch64_tb_set_jmp_target(uintptr_t jmp_addr, uintptr_t addr);
 
235
#define tb_set_jmp_target1 aarch64_tb_set_jmp_target
233
236
#elif defined(__arm__)
234
237
static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr)
235
238
{
355
358
                                   not the start of the next opcode  */
356
359
    return ra;
357
360
}
 
361
#elif defined(__aarch64__)
 
362
#  define GETRA()       ((uintptr_t)__builtin_return_address(0))
 
363
#  define GETPC_LDST()  tcg_getpc_ldst(GETRA())
 
364
static inline uintptr_t tcg_getpc_ldst(uintptr_t ra)
 
365
{
 
366
    int32_t b;
 
367
    ra += 4;                    /* skip one instruction */
 
368
    b = *(int32_t *)ra;         /* load the branch insn */
 
369
    b = (b << 6) >> (6 - 2);    /* extract the displacement */
 
370
    ra += b;                    /* apply the displacement  */
 
371
    ra -= 4;                    /* return a pointer into the current opcode,
 
372
                                   not the start of the next opcode  */
 
373
    return ra;
 
374
}
358
375
# else
359
376
#  error "CONFIG_QEMU_LDST_OPTIMIZATION needs GETPC_LDST() implementation!"
360
377
# endif
367
384
#if !defined(CONFIG_USER_ONLY)
368
385
 
369
386
struct MemoryRegion *iotlb_to_region(hwaddr index);
370
 
uint64_t io_mem_read(struct MemoryRegion *mr, hwaddr addr,
371
 
                     unsigned size);
372
 
void io_mem_write(struct MemoryRegion *mr, hwaddr addr,
 
387
bool io_mem_read(struct MemoryRegion *mr, hwaddr addr,
 
388
                 uint64_t *pvalue, unsigned size);
 
389
bool io_mem_write(struct MemoryRegion *mr, hwaddr addr,
373
390
                  uint64_t value, unsigned size);
374
391
 
375
392
void tlb_fill(CPUArchState *env1, target_ulong addr, int is_write, int mmu_idx,