Patchwork [3/3] bitbake.conf: override -cpu for qemu on ppc with SPE

login
register
mail settings
Submitter Khem Raj
Date July 20, 2012, 10:55 p.m.
Message ID <1342824914-24712-3-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/32761/
State Accepted
Commit 695598415b4e9e17def7f04332bdbc0d24cc1efc
Headers show

Comments

Khem Raj - July 20, 2012, 10:55 p.m.
We use -mtune flags which lets our application have
SPE intruction in them which is a good thing but when
running qemu especially in user mode these application
wont work with default powerpc emulation. Therefore we
have to add proper -cpu option to let qemu emulate for
a given cpu.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/bitbake.conf |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1525e44..f2d00aa 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -139,6 +139,10 @@  QEMU_OPTIONS = ""
 QEMU_OPTIONS_iwmmxt  = "-cpu pxa270-c5"
 QEMU_OPTIONS_armv6   = "-cpu arm1136"
 QEMU_OPTIONS_armv7a   = "-cpu cortex-a8"
+QEMU_OPTIONS_e500v2    = "-cpu e500v2"
+QEMU_OPTIONS_e500mc    = "-cpu e500mc"
+QEMU_OPTIONS_e5500     = "-cpu e5500"
+QEMU_OPTIONS_e5500-64b = "-cpu e5500"
 
 ##################################################################
 # Date/time variables.