diff options
author | David 'Digit' Turner <digit@android.com> | 2011-06-03 13:41:05 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-06-08 15:10:43 +0200 |
commit | 5285864985be9077e58e42235af6582dee72e841 (patch) | |
tree | 1020a7d95bec028cdba66816c2b4dc6c0bd79073 /hw | |
parent | 945e4f4f8554b7b2f30b95d3560465c93975a8a9 (diff) | |
download | external_qemu-5285864985be9077e58e42235af6582dee72e841.zip external_qemu-5285864985be9077e58e42235af6582dee72e841.tar.gz external_qemu-5285864985be9077e58e42235af6582dee72e841.tar.bz2 |
target-arm: integrate upstream ARM translator.
The new translator has the following benefits:
- faster emulation of ARMv5TE code (through improved JIT)
- proper support for ARMv7 and NEON
- rebuilding the full-eng platform images for ARMv7-A results
in additionnal speed increases (a.k.a. Thumb-2 rocks!).
Note that, as an interesting side effect, NEON machine code is generally
slower than the equivalent C code it is supposed to replace when run inside
the emulator. This can be explained by the fact that for now the translator
simply translates each NEON instruction into a series of sequential host
instructions (and also requires over-head for packing/unpacking/saturation/
etc...).
This change has been tested by running the "full-eng" platform image
rebuilt for ARMv7-A and Neon and using an appropriate kernel image
(prebuilt/android-arm/kernel/kernel-qemu-armv7). The system could boot
and seems to work perfectly. Not a single issue has been experienced
during testing. On a 2.4 GHz Xeon CPU, the image boots in about 25 seconds
(compared to 40 seconds for a vanilla one without this emulator patch).
Thanks to Peter Maydell at Linaro and ARM with his hard work to make this
happen (first in upstream, and now on Android).
This integration is based on the Meego git repository
(git://gitorious.org/qemu-maemo/qemu.git) using the following hash:
7e2d65b0c95c865b1fa6d3d4948e8e822b9ac2fd
On top of which, the following upstream patch has been applied
(with recommendation from Peter):
b7fa9214d8d4f57992c9acd0ccb125c54a095f00
(We chose this repository because it was the closest to the previous
integrate. We will probably use the Linaro ones for future work on this
part of the emulator).
Change-Id: I54837e3d2e908b2380d158411d7a9813630e7e4e
Diffstat (limited to 'hw')
-rw-r--r-- | hw/armv7m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/armv7m.c b/hw/armv7m.c index f7636db..1e4d072 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -200,7 +200,7 @@ qemu_irq *armv7m_init(int flash_size, int sram_size, armv7m_bitband_init(); nvic = qdev_create(NULL, "armv7m_nvic"); - env->v7m.nvic = nvic; + env->nvic = nvic; qdev_init(nvic); cpu_pic = arm_pic_init_cpu(env); sysbus_connect_irq(sysbus_from_qdev(nvic), 0, cpu_pic[ARM_PIC_CPU_IRQ]); |