diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-28 09:19:09 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-28 09:19:09 -0700 |
commit | 33f89d05b375f18596fa5892acaaae356fbb0c0e (patch) | |
tree | 2c8083ff16aed8d1761220716625d3c664b5e134 /android/main.c | |
parent | ad3d7dbce9f66373930774fa0eb9877f54e859d1 (diff) | |
download | external_qemu-33f89d05b375f18596fa5892acaaae356fbb0c0e.zip external_qemu-33f89d05b375f18596fa5892acaaae356fbb0c0e.tar.gz external_qemu-33f89d05b375f18596fa5892acaaae356fbb0c0e.tar.bz2 |
Fix CPU architecture reported in HW config
Change-Id: I9221916514a39435d2710fa9dada92a87bdc4dab
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/android/main.c b/android/main.c index c2f8663..56ae698 100644 --- a/android/main.c +++ b/android/main.c @@ -455,6 +455,17 @@ int main(int argc, char **argv) opts->trace = tracePath; } + /* Update CPU architecture for HW configs created from build dir. */ + if (inAndroidBuild) { +#if defined(TARGET_ARM) + free(android_hw->hw_cpu_arch); + android_hw->hw_cpu_arch = ASTRDUP("arm"); +#elif defined(TARGET_I386) + free(android_hw->hw_cpu_arch); + android_hw->hw_cpu_arch = ASTRDUP("x86"); +#endif + } + n = 1; /* generate arguments for the underlying qemu main() */ { |